feat: portal tenant apply flow
This commit is contained in:
@@ -885,6 +885,40 @@ definitions:
|
||||
username:
|
||||
type: string
|
||||
type: object
|
||||
dto.TenantApplicationResponse:
|
||||
properties:
|
||||
createdAt:
|
||||
description: CreatedAt 申请创建时间(租户记录创建时间)。
|
||||
type: string
|
||||
hasApplication:
|
||||
description: HasApplication 是否已提交过申请(或已成为创作者)。
|
||||
type: boolean
|
||||
status:
|
||||
allOf:
|
||||
- $ref: '#/definitions/consts.TenantStatus'
|
||||
description: Status 租户状态(pending_verify/verified/banned)。
|
||||
statusDescription:
|
||||
description: StatusDescription 状态描述(便于前端展示)。
|
||||
type: string
|
||||
tenantCode:
|
||||
description: TenantCode 租户 Code。
|
||||
type: string
|
||||
tenantId:
|
||||
description: TenantID 租户ID。
|
||||
type: integer
|
||||
tenantName:
|
||||
description: TenantName 租户名称。
|
||||
type: string
|
||||
type: object
|
||||
dto.TenantApplyForm:
|
||||
properties:
|
||||
code:
|
||||
description: Code 租户 ID(用于 URL/系统标识);全局唯一(tenants.code,忽略大小写)。
|
||||
type: string
|
||||
name:
|
||||
description: Name 租户名称(展示用)。
|
||||
type: string
|
||||
type: object
|
||||
dto.TenantCreateForm:
|
||||
properties:
|
||||
admin_user_id:
|
||||
@@ -4399,6 +4433,41 @@ paths:
|
||||
summary: 我的租户列表
|
||||
tags:
|
||||
- Web
|
||||
/v1/tenant/application:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: 成功
|
||||
schema:
|
||||
$ref: '#/definitions/dto.TenantApplicationResponse'
|
||||
summary: 获取租户申请信息(申请创作者)
|
||||
tags:
|
||||
- Web
|
||||
/v1/tenant/apply:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- description: form
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.TenantApplyForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: 成功
|
||||
schema:
|
||||
$ref: '#/definitions/dto.TenantApplicationResponse'
|
||||
summary: 提交租户申请(申请创作者)
|
||||
tags:
|
||||
- Web
|
||||
securityDefinitions:
|
||||
BasicAuth:
|
||||
type: basic
|
||||
|
||||
Reference in New Issue
Block a user