feat: expand superadmin edits and minio docs
This commit is contained in:
@@ -2032,6 +2032,28 @@ definitions:
|
||||
description: UpdatedAt 更新时间(RFC3339)。
|
||||
type: string
|
||||
type: object
|
||||
dto.SuperNotificationTemplateUpdateForm:
|
||||
properties:
|
||||
content:
|
||||
description: Content 通知内容(可选)。
|
||||
type: string
|
||||
is_active:
|
||||
description: IsActive 是否启用(可选)。
|
||||
type: boolean
|
||||
name:
|
||||
description: Name 模板名称(可选)。
|
||||
type: string
|
||||
tenant_id:
|
||||
description: TenantID 租户ID(不传代表不修改租户归属)。
|
||||
type: integer
|
||||
title:
|
||||
description: Title 通知标题(可选)。
|
||||
type: string
|
||||
type:
|
||||
allOf:
|
||||
- $ref: '#/definitions/consts.NotificationType'
|
||||
description: Type 通知类型(system/order/audit/interaction,可选)。
|
||||
type: object
|
||||
dto.SuperOrderAnomalyItem:
|
||||
properties:
|
||||
amount_paid:
|
||||
@@ -2219,6 +2241,36 @@ definitions:
|
||||
description: Reason 退款原因说明。
|
||||
type: string
|
||||
type: object
|
||||
dto.SuperPayoutAccountCreateForm:
|
||||
properties:
|
||||
account:
|
||||
description: Account 收款账号。
|
||||
maxLength: 128
|
||||
type: string
|
||||
name:
|
||||
description: Name 账户名称/开户行。
|
||||
maxLength: 128
|
||||
type: string
|
||||
realname:
|
||||
description: Realname 收款人姓名。
|
||||
maxLength: 128
|
||||
type: string
|
||||
type:
|
||||
description: Type 账户类型(bank/alipay)。
|
||||
enum:
|
||||
- bank
|
||||
- alipay
|
||||
type: string
|
||||
user_id:
|
||||
description: UserID 收款账户归属用户ID。
|
||||
type: integer
|
||||
required:
|
||||
- account
|
||||
- name
|
||||
- realname
|
||||
- type
|
||||
- user_id
|
||||
type: object
|
||||
dto.SuperPayoutAccountItem:
|
||||
properties:
|
||||
account:
|
||||
@@ -2288,6 +2340,27 @@ definitions:
|
||||
required:
|
||||
- action
|
||||
type: object
|
||||
dto.SuperPayoutAccountUpdateForm:
|
||||
properties:
|
||||
account:
|
||||
description: Account 收款账号(可选)。
|
||||
maxLength: 128
|
||||
type: string
|
||||
name:
|
||||
description: Name 账户名称/开户行(可选)。
|
||||
maxLength: 128
|
||||
type: string
|
||||
realname:
|
||||
description: Realname 收款人姓名(可选)。
|
||||
maxLength: 128
|
||||
type: string
|
||||
type:
|
||||
description: Type 账户类型(bank/alipay,可选)。
|
||||
enum:
|
||||
- bank
|
||||
- alipay
|
||||
type: string
|
||||
type: object
|
||||
dto.SuperReportExportForm:
|
||||
properties:
|
||||
end_at:
|
||||
@@ -2609,6 +2682,31 @@ definitions:
|
||||
description: Type 通知类型。
|
||||
type: string
|
||||
type: object
|
||||
dto.SuperUserProfileUpdateForm:
|
||||
properties:
|
||||
avatar:
|
||||
description: Avatar 头像URL(可选,空字符串表示清空)。
|
||||
type: string
|
||||
bio:
|
||||
description: Bio 个人简介(可选,空字符串表示清空)。
|
||||
type: string
|
||||
gender:
|
||||
allOf:
|
||||
- $ref: '#/definitions/consts.Gender'
|
||||
description: Gender 性别(可选)。
|
||||
id_card:
|
||||
description: IDCard 身份证号(可选,用于更新实名认证信息)。
|
||||
type: string
|
||||
is_real_name_verified:
|
||||
description: IsRealNameVerified 是否已实名认证(可选)。
|
||||
type: boolean
|
||||
nickname:
|
||||
description: Nickname 昵称(可选,空字符串表示清空)。
|
||||
type: string
|
||||
real_name:
|
||||
description: RealName 真实姓名(可选,用于更新实名认证信息)。
|
||||
type: string
|
||||
type: object
|
||||
dto.SuperUserRealNameResponse:
|
||||
properties:
|
||||
id_card_masked:
|
||||
@@ -3106,21 +3204,37 @@ definitions:
|
||||
type: object
|
||||
dto.UserItem:
|
||||
properties:
|
||||
avatar:
|
||||
description: Avatar 用户头像URL(资料展示)。
|
||||
type: string
|
||||
balance:
|
||||
description: Balance 账户可用余额(分)。
|
||||
type: integer
|
||||
balance_frozen:
|
||||
description: BalanceFrozen 账户冻结余额(分)。
|
||||
type: integer
|
||||
bio:
|
||||
description: Bio 用户个人简介。
|
||||
type: string
|
||||
created_at:
|
||||
description: CreatedAt 创建时间(RFC3339)。
|
||||
type: string
|
||||
gender:
|
||||
allOf:
|
||||
- $ref: '#/definitions/consts.Gender'
|
||||
description: Gender 用户性别(male/female/secret)。
|
||||
id:
|
||||
description: ID 用户ID。
|
||||
type: integer
|
||||
is_real_name_verified:
|
||||
description: IsRealNameVerified 是否已实名认证。
|
||||
type: boolean
|
||||
joined_tenant_count:
|
||||
description: JoinedTenantCount 加入的租户数量。
|
||||
type: integer
|
||||
nickname:
|
||||
description: Nickname 用户昵称(资料展示)。
|
||||
type: string
|
||||
owned_tenant_count:
|
||||
description: OwnedTenantCount 拥有的租户数量。
|
||||
type: integer
|
||||
@@ -4060,6 +4174,83 @@ paths:
|
||||
summary: List creators
|
||||
tags:
|
||||
- Creator
|
||||
/super/v1/creators/{tenantID}/payout-accounts:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Create payout account for tenant
|
||||
parameters:
|
||||
- description: Tenant ID
|
||||
format: int64
|
||||
in: path
|
||||
name: tenantID
|
||||
required: true
|
||||
type: integer
|
||||
- description: Create form
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.SuperPayoutAccountCreateForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Created
|
||||
schema:
|
||||
type: string
|
||||
summary: Create payout account
|
||||
tags:
|
||||
- Finance
|
||||
/super/v1/creators/{tenantID}/settings:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Get creator settings by tenant ID
|
||||
parameters:
|
||||
- description: Tenant ID
|
||||
format: int64
|
||||
in: path
|
||||
name: tenantID
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/dto.Settings'
|
||||
summary: Get creator settings
|
||||
tags:
|
||||
- Creator
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Update creator settings by tenant ID
|
||||
parameters:
|
||||
- description: Tenant ID
|
||||
format: int64
|
||||
in: path
|
||||
name: tenantID
|
||||
required: true
|
||||
type: integer
|
||||
- description: Settings form
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.Settings'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Updated
|
||||
schema:
|
||||
type: string
|
||||
summary: Update creator settings
|
||||
tags:
|
||||
- Creator
|
||||
/super/v1/finance/anomalies/balances:
|
||||
get:
|
||||
consumes:
|
||||
@@ -4281,6 +4472,34 @@ paths:
|
||||
summary: Create notification template
|
||||
tags:
|
||||
- Notification
|
||||
/super/v1/notifications/templates/{id}:
|
||||
patch:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Update notification template
|
||||
parameters:
|
||||
- description: Template ID
|
||||
format: int64
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Update form
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.SuperNotificationTemplateUpdateForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/dto.SuperNotificationTemplateItem'
|
||||
summary: Update notification template
|
||||
tags:
|
||||
- Notification
|
||||
/super/v1/orders:
|
||||
get:
|
||||
consumes:
|
||||
@@ -4486,6 +4705,33 @@ paths:
|
||||
summary: Remove payout account
|
||||
tags:
|
||||
- Finance
|
||||
patch:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Update payout account across tenants
|
||||
parameters:
|
||||
- description: Payout account ID
|
||||
format: int64
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Update form
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.SuperPayoutAccountUpdateForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Updated
|
||||
schema:
|
||||
type: string
|
||||
summary: Update payout account
|
||||
tags:
|
||||
- Finance
|
||||
/super/v1/payout-accounts/{id}/review:
|
||||
post:
|
||||
consumes:
|
||||
@@ -5187,6 +5433,33 @@ paths:
|
||||
summary: Get user
|
||||
tags:
|
||||
- User
|
||||
patch:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Update user profile fields
|
||||
parameters:
|
||||
- description: User ID
|
||||
format: int64
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Update form
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.SuperUserProfileUpdateForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Updated
|
||||
schema:
|
||||
type: string
|
||||
summary: Update user profile
|
||||
tags:
|
||||
- User
|
||||
/super/v1/users/{id}/coupons:
|
||||
get:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user