using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ServerCommon; using META_ID = System.UInt32; namespace GameServer; public class AIChatJwt { public string messageBase64 { get; set; } = string.Empty; public string signatureBase64 { get; set; } = string.Empty; } public class AIChatPointVerify { public string orderGuid { get; set; } = string.Empty; } public class AIChatError { public int code { get; set; } = 0; public string name { get; set; } = string.Empty; public string message { get; set; } = string.Empty; } public class AIChatJwtInfo { public string guid { get; set; } = string.Empty; public string role { get; set; } = string.Empty; public int iat { get; set; } = 0; public int exp { get; set; } = 0; } public class AIChatRegisterCharacter { public string guid { get; set; } = string.Empty; public string ownerUserGuid { get; set; } = string.Empty; public string lang { get; set; } = string.Empty; public string name { get; set; } = string.Empty; public string persona { get; set; } = string.Empty; public string firstMes { get; set; } = string.Empty; public string secrets { get; set; } = string.Empty; // Not Used public string shortDesc { get; set; } = string.Empty; public List tags { get; set; } = new(); public bool isOfficial { get; set; } = false; public List socialActionConfig = new(); public AIChatCharacterAttribute attributes { get; set; } = new(); } public class AIChatCharacterAttribute { public int gender { get; set; } = 0; } public class AIChatIssueJwt { public string jwt { get; set; } = string.Empty; } public class AIChatSocialActionConfig { public int id { get; set; } = 0; public float weight { get; set; } = 0; } public class AIChatPointClaimables { public int page { get; set; } = 0; public int numPerPage { get; set; } = 0; public int total { get; set; } = 0; public List items { get; set; } = new(); } public class AIChatPointClaimablesItems { public int start_time { get; set; } = 0; public int end_time { get; set; } = 0; public int amount { get; set; } = 0; public int log_count { get; set; } = 0; } public class AIChatPointHistory { public int page { get; set; } = 0; public int numPerPage { get; set; } = 0; public int total { get; set; } = 0; public List items { get; set; } = new(); } public class AIChatPointHistoryItems { public string created_date { get; set; } = string.Empty; public int sum_of_spend_free { get; set; } = 0; public int sum_of_earn_free { get; set; } = 0; public int sum_of_charge_free { get; set; } = 0; public int sum_of_spend_nonfree { get; set; } = 0; public int sum_of_earn_nonfree { get; set; } = 0; public int sum_of_charge_nonfree { get; set; } = 0; public int free_points_balance { get; set; } = 0; public int nonfree_points_balance { get; set; } = 0; } public class AIChatPointCharge { public double points { get; set; } = 0; public string pointType { get; set; } = string.Empty; public string userGuid { get; set; } = string.Empty; public string orderGuid { get; set; } = string.Empty; public string description { get; set; } = string.Empty; } public class AIChatSetting { public string id { get; set; } = string.Empty; public string model { get; set; } = string.Empty; public AIChatPoint point { get; set; } = new AIChatPoint(); public bool enabled { get; set; } = false; public int token_limit { get; set; } = 0; public AIChatOptions options { get; set; } = new AIChatOptions(); } public class AIChatPoint { public int cost { get; set; } = 0; public int share { get; set; } = 0; } public class AIChatOptions { public float temperature { get; set; } = 0; public float top_p { get; set; } = 0; } public class AIChatRegisterUser { public string nick { get; set; } = string.Empty; public AIChatRegisterUserSetting settings { get; set; } = new(); } public class AIChatRegisterUserSetting { public string defaultModel { get; set; } = ServerCommon.Constant.AI_CHAT_DEFAULT_MODEL; } public class AIChatRanking { public List items { get; set; } = new(); public int page { get; set; } = 0; public int numPerPage { get; set; } = 0; public int total { get; set; } = 0; public int start_at { get; set; } = 0; public int end_at { get; set; } = 0; } public class AIChatRankingData { public string char_guid { get; set; } = string.Empty; public string owner_guid { get; set; } = string.Empty; public string owner_nick { get; set; } = string.Empty; public string char_name { get; set; } = string.Empty; public int total_chat_count { get; set; } = 0; } public class AIChatCharacter { public string itemId { get; set; } = string.Empty; public AIChatCharacterInfo data { get; set; } = new(); } public class AIChatCharacterInfo { public string guid { get; set; } = string.Empty; public string owner_guid { get; set; } = string.Empty; public Int64 chat_count { get; set; } = 0; public List socialActionConfig = new(); public string created_at { get; set; } = string.Empty; public string updated_at { get; set; } = string.Empty; public bool is_official { get; set; } = false; public AiChatCharacterLocales locale { get; set; } = new(); public List tags { get; set; } = new(); } public class AiChatCharacterLocales { AiChatCharacterLocale en = new(); AiChatCharacterLocale ko = new(); AiChatCharacterLocale ja = new(); } public class AiChatCharacterLocale { public string id { get; set; } = string.Empty; public string lang { get; set; } = string.Empty; public string name { get; set; } = string.Empty; public string persona { get; set; } = string.Empty; public string first_mes { get; set; } = string.Empty; public string secrets { get; set; } = string.Empty; public string short_desc { get; set; } = string.Empty; public string created_at { get; set; } = string.Empty; public string updated_at { get; set; } = string.Empty; }