[色子游戏]玩家钱包流水记录-优化样式

This commit is contained in:
2026-03-03 15:15:16 +08:00
parent ae3c0f0f78
commit 1b62a4f3e0
9 changed files with 334 additions and 110 deletions

View File

@@ -61,5 +61,24 @@ export default {
url: '/dice/player_wallet_record/DicePlayerWalletRecord/destroy',
data: params
})
},
/**
* 获取玩家选项id、username用于下拉
*/
getPlayerOptions() {
return request.get<{ id: number; username: string }[]>({
url: '/dice/player_wallet_record/DicePlayerWalletRecord/getPlayerOptions'
})
},
/**
* 获取指定玩家当前平台币(钱包操作前)
*/
getPlayerWalletBefore(playerId: number | string) {
return request.get<{ wallet_before: number }>({
url: '/dice/player_wallet_record/DicePlayerWalletRecord/getPlayerWalletBefore',
params: { player_id: playerId }
})
}
}