[接口]新增抽奖接口/api/game/playStart

This commit is contained in:
2026-03-04 17:06:30 +08:00
parent 21c638a231
commit 0a3af2d422
6 changed files with 428 additions and 4 deletions

View File

@@ -108,7 +108,7 @@
getData()
}
// 类型展示0=充值 1=提现 2=购买抽奖次数 3=管理员加点 4=管理员扣点
// 类型展示0=充值 1=提现 2=购买抽奖次数 3=管理员加点 4=管理员扣点 5=抽奖
const typeFormatter = (row: Record<string, unknown>) => {
const t = row.type
if (t === 0) return '充值'
@@ -116,18 +116,18 @@
if (t === 2) return '购买抽奖次数'
if (t === 3) return '管理员加点'
if (t === 4) return '管理员扣点'
if (t === 5) return '抽奖'
return '-'
}
// 类型对应 tag 底色0 充值 1 提现 2 购买 3 加点 4 扣点
const typeTagType = (
t: unknown
): 'success' | 'warning' | 'danger' | 'info' | 'primary' => {
const typeTagType = (t: unknown): 'success' | 'warning' | 'danger' | 'info' | 'primary' => {
if (t === 0) return 'success'
if (t === 1) return 'warning'
if (t === 2) return 'primary'
if (t === 3) return 'success'
if (t === 4) return 'danger'
if (t === 5) return 'info'
return 'info'
}