feat: add superadmin wallet view

This commit is contained in:
2026-01-15 11:21:37 +08:00
parent 37325ab1b4
commit 56082bad4f
10 changed files with 495 additions and 5 deletions

View File

@@ -1280,6 +1280,51 @@ definitions:
description: VerifiedAt 实名认证时间RFC3339
type: string
type: object
dto.SuperWalletResponse:
properties:
balance:
description: Balance 账户可用余额(分)。
type: integer
balance_frozen:
description: BalanceFrozen 账户冻结余额(分)。
type: integer
transactions:
description: Transactions 最近交易记录。
items:
$ref: '#/definitions/dto.SuperWalletTransaction'
type: array
type: object
dto.SuperWalletTransaction:
properties:
amount:
description: Amount 交易金额(分)。
type: integer
date:
description: Date 交易时间RFC3339
type: string
id:
description: ID 订单ID。
type: integer
order_type:
allOf:
- $ref: '#/definitions/consts.OrderType'
description: OrderType 订单类型。
tenant_code:
description: TenantCode 租户编码。
type: string
tenant_id:
description: TenantID 交易所属租户ID充值为0
type: integer
tenant_name:
description: TenantName 租户名称。
type: string
title:
description: Title 交易标题。
type: string
type:
description: Type 交易流向income/expense
type: string
type: object
dto.SuperWithdrawalRejectForm:
properties:
reason:
@@ -2815,6 +2860,28 @@ paths:
summary: List user tenants
tags:
- User
/super/v1/users/{id}/wallet:
get:
consumes:
- application/json
description: Get user wallet balance and transactions
parameters:
- description: User ID
format: int64
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/dto.SuperWalletResponse'
summary: Get user wallet
tags:
- User
/super/v1/users/statistics:
get:
consumes: