feat(admin,api,player): 返水流程优化、账单详情与数据库重置
优化返水预览/确认/作废,新增玩家账变详情与后台一键重置为 seed 数据,并修复 dev 启动时 3000 端口占用。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -255,6 +255,15 @@ export class PlayerController {
|
||||
return jsonResponse(result);
|
||||
}
|
||||
|
||||
@Get('wallet/transactions/:transactionId')
|
||||
async transactionDetail(
|
||||
@CurrentUser('id') userId: bigint,
|
||||
@Param('transactionId') transactionId: string,
|
||||
) {
|
||||
const detail = await this.wallet.getTransactionDetail(userId, transactionId);
|
||||
return jsonResponse(detail);
|
||||
}
|
||||
|
||||
@Get('cashbacks')
|
||||
async cashbacks(@CurrentUser('id') userId: bigint) {
|
||||
const items = await this.cashback.getUserCashbacks(userId);
|
||||
|
||||
Reference in New Issue
Block a user