feat: expand superadmin edits and minio docs
This commit is contained in:
@@ -997,6 +997,121 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/super/v1/creators/{tenantID}/payout-accounts": {
|
||||
"post": {
|
||||
"description": "Create payout account for tenant",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Finance"
|
||||
],
|
||||
"summary": "Create payout account",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "Tenant ID",
|
||||
"name": "tenantID",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Create form",
|
||||
"name": "form",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.SuperPayoutAccountCreateForm"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Created",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/super/v1/creators/{tenantID}/settings": {
|
||||
"get": {
|
||||
"description": "Get creator settings by tenant ID",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Creator"
|
||||
],
|
||||
"summary": "Get creator settings",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "Tenant ID",
|
||||
"name": "tenantID",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.Settings"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"description": "Update creator settings by tenant ID",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Creator"
|
||||
],
|
||||
"summary": "Update creator settings",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "Tenant ID",
|
||||
"name": "tenantID",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Settings form",
|
||||
"name": "form",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.Settings"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Updated",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/super/v1/finance/anomalies/balances": {
|
||||
"get": {
|
||||
"description": "List balance anomalies across users",
|
||||
@@ -1358,6 +1473,48 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/super/v1/notifications/templates/{id}": {
|
||||
"patch": {
|
||||
"description": "Update notification template",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Notification"
|
||||
],
|
||||
"summary": "Update notification template",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "Template ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Update form",
|
||||
"name": "form",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.SuperNotificationTemplateUpdateForm"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.SuperNotificationTemplateItem"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/super/v1/orders": {
|
||||
"get": {
|
||||
"description": "List orders",
|
||||
@@ -1675,6 +1832,46 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"patch": {
|
||||
"description": "Update payout account across tenants",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Finance"
|
||||
],
|
||||
"summary": "Update payout account",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "Payout account ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Update form",
|
||||
"name": "form",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.SuperPayoutAccountUpdateForm"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Updated",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/super/v1/payout-accounts/{id}/review": {
|
||||
@@ -2813,6 +3010,46 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"patch": {
|
||||
"description": "Update user profile fields",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"User"
|
||||
],
|
||||
"summary": "Update user profile",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "User ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Update form",
|
||||
"name": "form",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.SuperUserProfileUpdateForm"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Updated",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/super/v1/users/{id}/coupons": {
|
||||
@@ -9099,6 +9336,39 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperNotificationTemplateUpdateForm": {
|
||||
"type": "object",
|
||||
"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": {
|
||||
"description": "Type 通知类型(system/order/audit/interaction,可选)。",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/consts.NotificationType"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperOrderAnomalyItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -9383,6 +9653,45 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperPayoutAccountCreateForm": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"account",
|
||||
"name",
|
||||
"realname",
|
||||
"type",
|
||||
"user_id"
|
||||
],
|
||||
"properties": {
|
||||
"account": {
|
||||
"description": "Account 收款账号。",
|
||||
"type": "string",
|
||||
"maxLength": 128
|
||||
},
|
||||
"name": {
|
||||
"description": "Name 账户名称/开户行。",
|
||||
"type": "string",
|
||||
"maxLength": 128
|
||||
},
|
||||
"realname": {
|
||||
"description": "Realname 收款人姓名。",
|
||||
"type": "string",
|
||||
"maxLength": 128
|
||||
},
|
||||
"type": {
|
||||
"description": "Type 账户类型(bank/alipay)。",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"bank",
|
||||
"alipay"
|
||||
]
|
||||
},
|
||||
"user_id": {
|
||||
"description": "UserID 收款账户归属用户ID。",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperPayoutAccountItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -9480,6 +9789,34 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperPayoutAccountUpdateForm": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"account": {
|
||||
"description": "Account 收款账号(可选)。",
|
||||
"type": "string",
|
||||
"maxLength": 128
|
||||
},
|
||||
"name": {
|
||||
"description": "Name 账户名称/开户行(可选)。",
|
||||
"type": "string",
|
||||
"maxLength": 128
|
||||
},
|
||||
"realname": {
|
||||
"description": "Realname 收款人姓名(可选)。",
|
||||
"type": "string",
|
||||
"maxLength": 128
|
||||
},
|
||||
"type": {
|
||||
"description": "Type 账户类型(bank/alipay,可选)。",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"bank",
|
||||
"alipay"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperReportExportForm": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -9954,6 +10291,43 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperUserProfileUpdateForm": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"avatar": {
|
||||
"description": "Avatar 头像URL(可选,空字符串表示清空)。",
|
||||
"type": "string"
|
||||
},
|
||||
"bio": {
|
||||
"description": "Bio 个人简介(可选,空字符串表示清空)。",
|
||||
"type": "string"
|
||||
},
|
||||
"gender": {
|
||||
"description": "Gender 性别(可选)。",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/consts.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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.SuperUserRealNameResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -10663,6 +11037,10 @@ const docTemplate = `{
|
||||
"dto.UserItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"avatar": {
|
||||
"description": "Avatar 用户头像URL(资料展示)。",
|
||||
"type": "string"
|
||||
},
|
||||
"balance": {
|
||||
"description": "Balance 账户可用余额(分)。",
|
||||
"type": "integer"
|
||||
@@ -10671,18 +11049,38 @@ const docTemplate = `{
|
||||
"description": "BalanceFrozen 账户冻结余额(分)。",
|
||||
"type": "integer"
|
||||
},
|
||||
"bio": {
|
||||
"description": "Bio 用户个人简介。",
|
||||
"type": "string"
|
||||
},
|
||||
"created_at": {
|
||||
"description": "CreatedAt 创建时间(RFC3339)。",
|
||||
"type": "string"
|
||||
},
|
||||
"gender": {
|
||||
"description": "Gender 用户性别(male/female/secret)。",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/consts.Gender"
|
||||
}
|
||||
]
|
||||
},
|
||||
"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"
|
||||
|
||||
Reference in New Issue
Block a user