feat(auth): 更新用户认证类型定义并优化提款功能
- 添加 AuthCoinAmount 类型和 AuthWithdrawAccount 接口 - 在 AuthUser 和相关 DTO 中增加余额和提款账户字段 - 将获取用户资料的请求方法从 POST 改为 GET - 实现提款账户信息的默认值设置和状态管理 - 添加 JackpotPoolTicker 组件并在状态栏中显示 - 更新多语言文件中的游戏规则说明 - 实现提款表单的预填充和状态重置功能
This commit is contained in:
@@ -4,12 +4,23 @@ export type AuthStatus = 'anonymous' | 'authenticated' | 'restoring'
|
||||
|
||||
export type AuthSubmitContext = 'login' | 'register'
|
||||
|
||||
export type AuthCoinAmount = number | string
|
||||
|
||||
export interface AuthWithdrawAccount {
|
||||
receiveAccount?: string
|
||||
receiverEmail?: string
|
||||
receiverMobile?: string
|
||||
receiverName?: string
|
||||
}
|
||||
|
||||
export interface AuthUser {
|
||||
createTime?: number
|
||||
channelId?: number
|
||||
coin?: string
|
||||
coin?: AuthCoinAmount
|
||||
coinBalance?: number
|
||||
currentStreak?: number
|
||||
email?: string
|
||||
frozenBalance?: number
|
||||
headImage?: string
|
||||
id: string
|
||||
isJackpot?: boolean
|
||||
@@ -21,8 +32,11 @@ export interface AuthUser {
|
||||
riskFlags?: number
|
||||
roles?: string[]
|
||||
streakLevel?: number
|
||||
totalDepositCoin?: number
|
||||
totalWithdrawCoin?: number
|
||||
username?: string
|
||||
uuid?: string
|
||||
withdraw?: AuthWithdrawAccount
|
||||
}
|
||||
|
||||
export interface AuthSessionInput {
|
||||
@@ -47,7 +61,7 @@ export interface AuthTokenDto {
|
||||
|
||||
export interface AuthUserDto {
|
||||
channel_id: number
|
||||
coin: string
|
||||
coin: AuthCoinAmount
|
||||
phone?: string
|
||||
risk_flags: number
|
||||
username: string
|
||||
@@ -69,17 +83,27 @@ export interface RefreshTokenDto {
|
||||
|
||||
export interface AuthUserProfileDto {
|
||||
channel_id: number
|
||||
coin: string
|
||||
coin: number
|
||||
coin_balance: number
|
||||
create_time: number
|
||||
current_streak: number
|
||||
email: string
|
||||
frozen_balance: number
|
||||
head_image: string
|
||||
last_bet_period_no: string
|
||||
phone: string
|
||||
register_invite_code: string
|
||||
risk_flags: number
|
||||
total_deposit_coin: number
|
||||
total_withdraw_coin: number
|
||||
username: string
|
||||
uuid: string
|
||||
withdraw?: {
|
||||
receive_account: string
|
||||
receiver_email: string
|
||||
receiver_mobile: string
|
||||
receiver_name: string
|
||||
} | null
|
||||
}
|
||||
|
||||
export interface LoginRequestDto {
|
||||
|
||||
Reference in New Issue
Block a user