FondleTalk/lib/network/NetworkConfig.dart
2025-01-11 17:50:58 +08:00

83 lines
3.1 KiB
Dart

import '../beans/memory_card_bean.dart';
import '../beans/user_info_bean.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 = [
"https://miaoyuapi.shhuanmeng.com/",
"https://miaoyuapi.shhuanmeng.com/",
];
static List BASE_URLS_AI = [
"https://miaoyuapi.shhuanmeng.com/",
];
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 UserInfoBean? userInfoBean;
static bool isTeenage = false; //是否是青少年模式
static String teenagePassword = ""; //青少年模式密码
static String orderId = ""; //订单号
static String currencyNum = ""; //语珠数量
static List<MemoryCardBean> memoryCardList = []; //语珠数量
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 logout = "api/Account/Logout"; //注销账号
static const String createOrder = "api/Payment/CreateOrder"; //创建订单
static const String getOrderRewardsInfo = "api/Payment/GetOrderRewardsInfo"; //获取订单状态
static const String buyProduct = "api/Payment/BuyProduct"; //购买商城道具
static const String getMemoryCardInfo = "api/Chat/GetMemoryCardInfo"; //获取记忆卡列表
static const String useMemoryCard = "api/Chat/UseMemoryCard"; //使用道具卡
static const String reward = "api/ad/reward"; //广告奖励
}