feat: expand superadmin edits and minio docs

This commit is contained in:
2026-01-17 19:32:46 +08:00
parent 3af5b20bcc
commit 984a404b5f
25 changed files with 2688 additions and 36 deletions

View File

@@ -213,6 +213,16 @@ type UserItem struct {
Balance int64 `json:"balance"`
// BalanceFrozen 账户冻结余额(分)。
BalanceFrozen int64 `json:"balance_frozen"`
// Nickname 用户昵称(资料展示)。
Nickname string `json:"nickname"`
// Avatar 用户头像URL资料展示
Avatar string `json:"avatar"`
// Gender 用户性别male/female/secret
Gender consts.Gender `json:"gender"`
// Bio 用户个人简介。
Bio string `json:"bio"`
// IsRealNameVerified 是否已实名认证。
IsRealNameVerified bool `json:"is_real_name_verified"`
// OwnedTenantCount 拥有的租户数量。
OwnedTenantCount int64 `json:"owned_tenant_count"`
// JoinedTenantCount 加入的租户数量。

View File

@@ -113,6 +113,22 @@ type SuperNotificationTemplateCreateForm struct {
IsActive *bool `json:"is_active"`
}
// SuperNotificationTemplateUpdateForm 超管通知模板更新参数。
type SuperNotificationTemplateUpdateForm struct {
// TenantID 租户ID不传代表不修改租户归属
TenantID *int64 `json:"tenant_id"`
// Name 模板名称(可选)。
Name *string `json:"name"`
// Type 通知类型system/order/audit/interaction可选
Type *consts.NotificationType `json:"type"`
// Title 通知标题(可选)。
Title *string `json:"title"`
// Content 通知内容(可选)。
Content *string `json:"content"`
// IsActive 是否启用(可选)。
IsActive *bool `json:"is_active"`
}
// SuperNotificationTemplateItem 超管通知模板条目。
type SuperNotificationTemplateItem struct {
// ID 模板ID。

View File

@@ -72,3 +72,29 @@ type SuperPayoutAccountReviewForm struct {
// Reason 审核说明(驳回时必填)。
Reason string `json:"reason"`
}
// SuperPayoutAccountCreateForm 超管创建结算账户参数。
type SuperPayoutAccountCreateForm struct {
// UserID 收款账户归属用户ID。
UserID int64 `json:"user_id" validate:"required"`
// Type 账户类型bank/alipay
Type string `json:"type" validate:"required,oneof=bank alipay"`
// Name 账户名称/开户行。
Name string `json:"name" validate:"required,max=128"`
// Account 收款账号。
Account string `json:"account" validate:"required,max=128"`
// Realname 收款人姓名。
Realname string `json:"realname" validate:"required,max=128"`
}
// SuperPayoutAccountUpdateForm 超管更新结算账户参数。
type SuperPayoutAccountUpdateForm struct {
// Type 账户类型bank/alipay可选
Type *string `json:"type" validate:"omitempty,oneof=bank alipay"`
// Name 账户名称/开户行(可选)。
Name *string `json:"name" validate:"omitempty,max=128"`
// Account 收款账号(可选)。
Account *string `json:"account" validate:"omitempty,max=128"`
// Realname 收款人姓名(可选)。
Realname *string `json:"realname" validate:"omitempty,max=128"`
}

View File

@@ -117,6 +117,24 @@ type SuperUserRealNameResponse struct {
IDCardMasked string `json:"id_card_masked"`
}
// SuperUserProfileUpdateForm 超管用户资料更新表单。
type SuperUserProfileUpdateForm struct {
// Nickname 昵称(可选,空字符串表示清空)。
Nickname *string `json:"nickname"`
// Avatar 头像URL可选空字符串表示清空
Avatar *string `json:"avatar"`
// Gender 性别(可选)。
Gender *consts.Gender `json:"gender"`
// Bio 个人简介(可选,空字符串表示清空)。
Bio *string `json:"bio"`
// IsRealNameVerified 是否已实名认证(可选)。
IsRealNameVerified *bool `json:"is_real_name_verified"`
// RealName 真实姓名(可选,用于更新实名认证信息)。
RealName *string `json:"real_name"`
// IDCard 身份证号(可选,用于更新实名认证信息)。
IDCard *string `json:"id_card"`
}
// SuperUserContentActionListFilter 超管用户互动内容列表过滤条件。
type SuperUserContentActionListFilter struct {
requests.Pagination