feat: add superadmin wallet view
This commit is contained in:
@@ -203,6 +203,36 @@ type UserItem struct {
|
||||
JoinedTenantCount int64 `json:"joined_tenant_count"`
|
||||
}
|
||||
|
||||
type SuperWalletResponse struct {
|
||||
// Balance 账户可用余额(分)。
|
||||
Balance int64 `json:"balance"`
|
||||
// BalanceFrozen 账户冻结余额(分)。
|
||||
BalanceFrozen int64 `json:"balance_frozen"`
|
||||
// Transactions 最近交易记录。
|
||||
Transactions []SuperWalletTransaction `json:"transactions"`
|
||||
}
|
||||
|
||||
type SuperWalletTransaction struct {
|
||||
// ID 订单ID。
|
||||
ID int64 `json:"id"`
|
||||
// OrderType 订单类型。
|
||||
OrderType consts.OrderType `json:"order_type"`
|
||||
// Title 交易标题。
|
||||
Title string `json:"title"`
|
||||
// Amount 交易金额(分)。
|
||||
Amount int64 `json:"amount"`
|
||||
// Type 交易流向(income/expense)。
|
||||
Type string `json:"type"`
|
||||
// Date 交易时间(RFC3339)。
|
||||
Date string `json:"date"`
|
||||
// TenantID 交易所属租户ID(充值为0)。
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
// TenantCode 租户编码。
|
||||
TenantCode string `json:"tenant_code"`
|
||||
// TenantName 租户名称。
|
||||
TenantName string `json:"tenant_name"`
|
||||
}
|
||||
|
||||
type UserStatistics struct {
|
||||
// Status 用户状态枚举。
|
||||
Status consts.UserStatus `json:"status"`
|
||||
|
||||
Reference in New Issue
Block a user