feat: 增强玩家 API,新增 locale 和时间字段,更新钱包 API 以支持可用余额计算,添加错误码与多语言支持

This commit is contained in:
2026-05-09 15:05:46 +08:00
parent f1b38ef421
commit a0f86a4e36
36 changed files with 2523 additions and 34 deletions

View File

@@ -26,11 +26,29 @@ enum ErrorCode: int
/** PRD金额超出限制 */
case WalletAmountExceedsLimit = 1003;
/** 后台关闭玩家转入lottery_settings.wallet.transfer_in_enabled=false */
case WalletTransferInDisabled = 1004;
/**
* PRD钱包查询等场景下请求参数无效当前用于 `currency` 非法(与 1003 语义区分)。
*/
case WalletInvalidCurrency = 1005;
/** 后台关闭玩家转出 */
case WalletTransferOutDisabled = 1006;
/** 彩票钱包已冻结,不可划转 */
case WalletLotteryFrozen = 1007;
/** 金额非法:须为正整数最小货币单位 */
case WalletInvalidAmount = 1008;
/** 主站钱包接口拒绝或不可用(扣款/加款失败) */
case WalletExternalRejected = 1009;
/** 幂等键与已有订单冲突(金额/币种/方向不一致) */
case WalletIdempotentConflict = 1010;
/* ========== 20002999 下注 / 注单PRD 保留,业务未实现时亦可提前登记) ========== */
/** PRD当期已封盘 */
@@ -56,6 +74,9 @@ enum ErrorCode: int
/** 未配置 `MAIN_SITE_SSO_JWT_SECRET`(通常 HTTP 503 */
case PlayerSsoSecretNotConfigured = 8004;
/** 账号已冻结或禁止登录status ≠ active */
case PlayerAccountSuspended = 8005;
/* ========== 81008199 管理端 API ========== */
/** 未登录或 Token 无效 */