This commit is contained in:
sion
2026-04-07 01:05:05 +08:00
parent edad10ff06
commit 5ca1274607
83 changed files with 1561 additions and 1241 deletions

View File

@@ -1,111 +1,111 @@
/// API 端配置
/// API 端配置
class ApiEndpoints {
ApiEndpoints._();
/// 环境类
/// 環境類
static const String _env = String.fromEnvironment('ENV', defaultValue: 'dev');
/// 基URL - 根据环境自动切换
/// 基URL - 根據環境自動切換
static const String baseUrl = _env == 'prod'
? 'http://8.155.172.147:5010'
: 'http://localhost:5010';
/// 是否为生产环
/// 是否為生產環
static const bool isProduction = _env == 'prod';
// ==================== 用户模块 ====================
// ==================== 用戶模塊 ====================
/// 用户登录
/// 用戶登錄
static const String login = '/api/user/login';
/// 用户注册
/// 用戶註冊
static const String register = '/api/user/register';
/// 取用信息
/// 取用信息
static const String userInfo = '/api/user/info';
/// 上KYC
/// 上KYC
static const String kyc = '/api/user/kyc';
/// 取推广码
/// 取推廣碼
static const String referralCode = '/api/user/referral-code';
/// 退出登
/// 退出登
static const String logout = '/api/user/logout';
// ==================== 行情模 ====================
// ==================== 行情模 ====================
/// 获取币种列表
/// 獲取幣種列表
static const String coinList = '/api/market/list';
/// 获取币种详
/// 獲取幣種詳
static const String coinDetail = '/api/market/detail';
/// 搜索币种
/// 搜索幣種
static const String coinSearch = '/api/market/search';
// ==================== 交易模 ====================
// ==================== 交易模 ====================
///
///
static const String buy = '/api/trade/buy';
///
///
static const String sell = '/api/trade/sell';
/// 取交易记录
/// 取交易記錄
static const String tradeOrders = '/api/trade/orders';
/// 获取订单详
/// 獲取訂單詳
static const String tradeOrderDetail = '/api/trade/order/detail';
// ==================== 资产模块 ====================
// ==================== 資產模塊 ====================
/// 获取资产总览
/// 獲取資產總覽
static const String assetOverview = '/api/asset/overview';
/// 获取资金账户
/// 獲取資金賬戶
static const String fundAccount = '/api/asset/fund';
/// 取交易账户
/// 取交易賬戶
static const String tradeAccount = '/api/asset/trade';
/// 资金划转
/// 資金劃轉
static const String transfer = '/api/asset/transfer';
/// 获取资金流水
/// 獲取資金流水
static const String assetFlow = '/api/asset/flow';
// ==================== 充提模 ====================
// ==================== 充提模 ====================
/// 申充值
/// 申充值
static const String deposit = '/api/fund/deposit';
/// 确认已打款
/// 確認已打款
static const String confirmPay = '/api/fund/confirmPay';
/// 申请提现
/// 申請提現
static const String withdraw = '/api/fund/withdraw';
/// 取消订单
/// 取消訂單
static const String cancelOrder = '/api/fund/cancel';
/// 取可用提现网络列表
/// 取可用提現網絡列表
static const String walletNetworks = '/api/wallet/networks';
/// 取充提记录
/// 取充提記錄
static const String fundOrders = '/api/fund/orders';
/// 取默认钱包地址
/// 取默認錢包地址
static const String defaultWallet = '/api/wallet/default';
// ==================== 福利模 ====================
// ==================== 福利模 ====================
/// 福利中心状态
/// 福利中心狀態
static const String bonusWelfare = '/api/bonus/welfare';
/// 领取奖励
/// 領取獎勵
static const String bonusClaim = '/api/bonus/claim';
/// 每日盈
/// 每日盈
static const String dailyProfit = '/api/asset/daily-profit';
}