66 lines
2.3 KiB
Dart
66 lines
2.3 KiB
Dart
class NetworkConfig {
|
|
static String ServerDomain_Online = BASE_URLS[SELECT_INDEX];
|
|
static String deviceID = ""; //设备ID
|
|
static String systemVersion = ""; //设备ID
|
|
|
|
/// 选择哪个域名做请求
|
|
static int SELECT_INDEX = 0;
|
|
|
|
static List BASE_URLS = [
|
|
"http://101.43.19.200:90/",
|
|
"http://101.43.19.200:90/",
|
|
];
|
|
|
|
static List BASE_URLS_AI = [
|
|
"http://101.43.19.200:90/",
|
|
];
|
|
|
|
static bool isTest = true;
|
|
|
|
static String token = "";
|
|
static String userToken = ""; //用户登录验签
|
|
static String AppId = "1";
|
|
static String BossId = "";
|
|
static String userId = "";
|
|
static String userName = "";
|
|
static String Version = "1.0.0";
|
|
static String Language = "en";
|
|
|
|
static const String accountLogin = "api/Account/AccountLogIn"; //登录
|
|
static const String sendPhoneNumber = "api/Account/SendPhoneNumber"; //获取验证码
|
|
|
|
static const String getCharacterIdList = "api/Chat/GetCharacterIdList"; //获取首页展示的人物ID列表
|
|
|
|
static const String getCharacterInfo = "api/chat/getCharacterInfo"; //获取人物信息
|
|
|
|
static const String getChatInfo = "api/Chat/GetChatInfo"; //获取聊天内容
|
|
|
|
static const String sendMessage = "api/Chat/SendMessage"; //发送消息
|
|
|
|
static const String delChatByIds = "api/Chat/DelChatByIds"; //删除单条或多条信息
|
|
|
|
static const String delChat = "api/Chat/DelChat"; //清空聊天信息(重启聊天)
|
|
|
|
static const String getChatHistoryList = "api/Chat/GetChatHistoryList"; //消息列表
|
|
|
|
static const String getCategoryList = "api/Category/GetCategoryList"; //发现-获取分类列表
|
|
|
|
static const String getCategoryInfoList = "api/Category/GetCategoryInfoList"; //发现-复用页面角色信息
|
|
|
|
static const String getCategoryFindList = "api/Category/GetCategoryFindList"; //发现-第一页固定内容
|
|
|
|
static const String getUserInfo = "api/Account/GetUserInfo"; //获取用户信息
|
|
|
|
static const String getMyAccount = "api/Account/GetMyAccount"; //我的账户
|
|
|
|
static const String getTransactionRecords = "api/Account/GetTransactionRecords"; //交易记录
|
|
|
|
static const String getMallItem = "api/Account/GetMallItem"; //货币商城
|
|
|
|
static const String chat = "/v1/chat/completions"; //聊天
|
|
|
|
static const String uploadImg = "/upload/image"; //审核模式上传图片
|
|
|
|
static const String prompt = "/prompt"; //审核模式上传图片
|
|
}
|