From 2124c2a4b03d080ab40af1d327b81be1d4724ebd Mon Sep 17 00:00:00 2001 From: LiLittleCat Date: Tue, 16 May 2023 22:45:02 +0800 Subject: [PATCH] feat: update files --- data/abnormal-websites.json | 0 data/features.json | 11 -------- data/normal-websites.json | 0 data/websites.json | 6 ----- pom.xml | 25 +++++++++++-------- .../{Features.java => Feature.java} | 6 ++--- .../com.lilittlecat/freechatgpt/Website.java | 23 +++++++++++++++++ 7 files changed, 41 insertions(+), 30 deletions(-) create mode 100644 data/abnormal-websites.json delete mode 100644 data/features.json create mode 100644 data/normal-websites.json delete mode 100644 data/websites.json rename src/main/java/com.lilittlecat/freechatgpt/{Features.java => Feature.java} (86%) create mode 100644 src/main/java/com.lilittlecat/freechatgpt/Website.java diff --git a/data/abnormal-websites.json b/data/abnormal-websites.json new file mode 100644 index 0000000..e69de29 diff --git a/data/features.json b/data/features.json deleted file mode 100644 index 47bf42f..0000000 --- a/data/features.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "free": 2, - "free_quota": 1, - "gpt4_supported": 1, - "more_than_chat": 0.5, - "login_required": -1, - "vpn_required": -1, - "api_key_required": -1, - "follow_on_wechat_required": -1, - "community_recommendation": 0.5 -} \ No newline at end of file diff --git a/data/normal-websites.json b/data/normal-websites.json new file mode 100644 index 0000000..e69de29 diff --git a/data/websites.json b/data/websites.json deleted file mode 100644 index 0a51ba1..0000000 --- a/data/websites.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "websites": { - "normal": [], - "abnormal": [] - } -} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 4e7333d..28aefcc 100644 --- a/pom.xml +++ b/pom.xml @@ -31,16 +31,16 @@ 1.18.20 provided - - - - - - - - - - + + + + + + + + + + org.junit.jupiter junit-jupiter-engine @@ -62,6 +62,11 @@ hutool-all 5.8.11 + + com.konghq + unirest-java + 3.14.1 + diff --git a/src/main/java/com.lilittlecat/freechatgpt/Features.java b/src/main/java/com.lilittlecat/freechatgpt/Feature.java similarity index 86% rename from src/main/java/com.lilittlecat/freechatgpt/Features.java rename to src/main/java/com.lilittlecat/freechatgpt/Feature.java index b0b9beb..ff664ec 100644 --- a/src/main/java/com.lilittlecat/freechatgpt/Features.java +++ b/src/main/java/com.lilittlecat/freechatgpt/Feature.java @@ -7,11 +7,11 @@ import lombok.Getter; * @since 2023/5/7 */ @Getter -public enum Features { +public enum Feature { FREE("free", "🎁", 2f), FREE_QUOTA("free_quota", "🔓", 1f), GPT4_SUPPORTED("gpt4_supported", "💪", 1f), - MORE_THAN_CHAT("more_than_chat", "🎶", 0.5f), + MORE_THAN_CHAT("more_than_chat", "🧰", 0.5f), LOGIN_REQUIRED("login_required", "🔒", -1f), VPN_REQUIRED("vpn_required", "🌎", -1f), API_KEY_REQUIRED("api_key_required", "🔑", -1f), @@ -22,7 +22,7 @@ public enum Features { private final String label; private final Float score; - Features(String value, String label, Float score) { + Feature(String value, String label, Float score) { this.value = value; this.label = label; this.score = score; diff --git a/src/main/java/com.lilittlecat/freechatgpt/Website.java b/src/main/java/com.lilittlecat/freechatgpt/Website.java new file mode 100644 index 0000000..6126c83 --- /dev/null +++ b/src/main/java/com.lilittlecat/freechatgpt/Website.java @@ -0,0 +1,23 @@ +package com.lilittlecat.freechatgpt; + +import lombok.Data; + +import java.time.LocalDate; +import java.util.List; + +/** + * @author LiLittleCat + * @since 2023/5/16 + */ +@Data +public class Website { + private String url; + private String title; + private String description; + private List features; + private Double score; + private LocalDate addedDate; + private LocalDate updatedDate; + private LocalDate reportedInvalidDate; + private String labels; +}