SteamCloudGame/lib/network/NetworkConfig.dart
2024-11-23 15:25:11 +08:00

94 lines
3.4 KiB
Dart

import '../beans/sign_bean.dart';
import '../beans/user_info_bean.dart';
class NetworkConfig {
static String ServerDomain_Online = BASE_URLS[SELECT_INDEX];
/// 选择哪个域名做请求
static int SELECT_INDEX = 0;
static List BASE_URLS = [
"http://192.168.1.23:81/",
"http://192.168.1.23:81/",
];
static List BASE_URLS_AI = [
"http://192.168.1.23:81/",
];
static bool isTest = true;
static String token = "";
static String userToken = ""; //用户登录验签
static String signKey = ""; //加密key
static String deviceID = ""; //设备号
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 String orderId = ""; //订单号
static SignBean? signData; //签到
static const String getAppConfig = "api/App/GetAppConfig"; //应用配置
static const String getHomeInfo = "api/Home/GetHomeInfo"; //首页信息
static const String getGameRankingList = "api/Home/GetGameRankingList"; //首页排行榜
static const String gameSearch = "api/Game/GameSearch"; //游戏搜索
static const String getGameTypeList = "api/Game/GetGameTypeList"; //游戏列表分类
static const String getGameList = "api/Game/GetGameList"; //分类游戏列表
static const String getGameInfo = "api/Game/GetGameInfo"; //获取游戏详情
static const String gameRecommendations = "api/Game/GameRecommendations"; //游戏详情页游戏推荐
static const String gameCollect = "api/Game/GameCollect"; //收藏游戏
static const String getGameCollect = "api/Game/GetGameCollect"; //收藏列表
static const String sendPhoneNumber = "api/Account/SendPhoneNumber"; //验证码
static const String login = "api/Account/Login"; //登录
static const String getUserInfo = "api/Account/GetUserInfo"; //用户信息
static const String realAuthentication = "api/Account/RealAuthentication"; //实名认证
static const String getUserDiamondConsumeList = "api/Account/GetUserDiamondConsumeList"; //支出/收入
static const String updateUserNickName = "api/Account/UpdateUserNickName"; //修改昵称
static const String getGameHistory = "api/Game/GetGameHistory"; //游玩历史
static const String gamePlayTimeList = "api/Game/GamePlayTimeList"; //游戏详情页,游戏时长排行榜
static const String getDiamondMall = "api/Mall/GetDiamondMall"; //商城数据
static const String createOrder = "api/Payment/CreateOrder"; //创建订单
static const String getOrderRewardsInfo = "api/Payment/GetOrderRewardsInfo"; //获取订单状态
static const String useRedemptionCode = "api/Redemption/UseRedemptionCode"; //兑换码
static const String getSevenSignList = "api/SevenDay/GetSevenSignList"; //签到列表
static const String sevenSignToday = "api/SevenDay/SevenSignToday"; //领取签到
static const String sendFeedBack = "api/FeedBack/SendFeedBack"; //反馈
static const String gameHotSearch = "api/Game/GameHotSearch"; //热门搜索
static const String getUserMessageNotReadCount = "api/Messages/GetUserMessageNotReadCount"; //未读消息数
static const String getUserMessageList = "api/Messages/GetUserMessageList"; //消息列表
static const String getUserMessageInfo = "api/Messages/GetUserMessageInfo"; //消息详情
}