实名姓名与收款账户不一致会导致收款码登记失败,新增后台撤销实名能力: - 新增 user:revoke_realname 权限,授予超级管理员与运营角色 - 撤销时重置用户实名状态为未认证并删除实名记录,使其可重新认证,写入审计日志 - 用户管理页新增实名状态列与"撤销实名"操作(含原因弹窗) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
47 lines
1.5 KiB
Go
47 lines
1.5 KiB
Go
package adminuser
|
|
|
|
import "time"
|
|
|
|
type UserDTO struct {
|
|
ID uint64 `json:"id"`
|
|
Phone string `json:"phone"`
|
|
Nickname string `json:"nickname"`
|
|
RealnameStatus string `json:"realname_status"`
|
|
RiskStatus string `json:"risk_status"`
|
|
CreditScore int `json:"credit_score"`
|
|
DepositFreeQuotaCent int64 `json:"deposit_free_quota_cent"`
|
|
DepositFreeUsedCent int64 `json:"deposit_free_used_cent"`
|
|
DepositFreeRemainingCent int64 `json:"deposit_free_remaining_cent"`
|
|
Status string `json:"status"`
|
|
OrderCount int64 `json:"order_count"`
|
|
ListingCount int64 `json:"listing_count"`
|
|
DisputeCount int64 `json:"dispute_count"`
|
|
LastLoginAt *time.Time `json:"last_login_at"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
type FreezeRequest struct {
|
|
Reason string `json:"reason"`
|
|
}
|
|
|
|
type RevokeRealnameRequest struct {
|
|
Reason string `json:"reason"`
|
|
}
|
|
|
|
type DepositFreeQuotaRequest struct {
|
|
AmountCent int64 `json:"amount_cent"`
|
|
}
|
|
|
|
// ListQuery 用户列表筛选条件。Keyword 同时匹配手机号/昵称(模糊)与用户 ID(精确)。
|
|
type ListQuery struct {
|
|
Keyword string
|
|
Status string
|
|
}
|
|
|
|
type PaginatedResult struct {
|
|
Items interface{} `json:"items"`
|
|
Total int64 `json:"total"`
|
|
Page int `json:"page"`
|
|
PageSize int `json:"page_size"`
|
|
}
|