Add: Features

pull/206/head
LiLittleCat 2 years ago
parent 296189deb6
commit 57b060c42a
  1. 11
      data/features.json
  2. 6
      data/websites.json
  3. 30
      src/main/java/com.lilittlecat/app/Features.java

@ -0,0 +1,11 @@
{
"free": 2,
"free_quota": 1,
"gpt4_supported": 0.5,
"more_than_chat": 0.5,
"login_required": -1,
"vpn_required": -1,
"api_key_required": -1,
"follow_on_wechat_required": -1,
"community_recommendation": 0.5
}

@ -0,0 +1,6 @@
{
"websites": {
"normal": [],
"abnormal": []
}
}

@ -0,0 +1,30 @@
package com.lilittlecat.app;
import lombok.Getter;
/**
* @author <a href="https://github.com/LiLittleCat">LiLittleCat</a>
* @since 2023/5/7
*/
@Getter
public enum Features {
FREE("free", "🆓", 2f),
FREE_QUOTA("free_quota", "🔓", 1f),
GPT4_SUPPORTED("gpt4_supported", "🧠", 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),
FOLLOW_ON_WECHAT_REQUIRED("follow_on_wechat_required", "👀", -1f),
COMMUNITY_RECOMMENDATION("community_recommendation", "🌟", 0.5f);;
private final String value;
private final String label;
private final Float score;
Features(String value, String label, Float score) {
this.value = value;
this.label = label;
this.score = score;
}
}
Loading…
Cancel
Save