34 lines
1.2 KiB
Go
34 lines
1.2 KiB
Go
package dto
|
||
|
||
import (
|
||
"time"
|
||
|
||
"quyun/v2/pkg/consts"
|
||
)
|
||
|
||
// TenantApplyForm 申请创作者(创建租户申请)表单。
|
||
type TenantApplyForm struct {
|
||
// Code 租户 ID(用于 URL/系统标识);全局唯一(tenants.code,忽略大小写)。
|
||
Code string `json:"code,omitempty"`
|
||
// Name 租户名称(展示用)。
|
||
Name string `json:"name,omitempty"`
|
||
}
|
||
|
||
// TenantApplicationResponse 当前用户的租户申请信息(申请创作者)。
|
||
type TenantApplicationResponse struct {
|
||
// HasApplication 是否已提交过申请(或已成为创作者)。
|
||
HasApplication bool `json:"hasApplication"`
|
||
// TenantID 租户ID。
|
||
TenantID int64 `json:"tenantId,omitempty"`
|
||
// TenantCode 租户 Code。
|
||
TenantCode string `json:"tenantCode,omitempty"`
|
||
// TenantName 租户名称。
|
||
TenantName string `json:"tenantName,omitempty"`
|
||
// Status 租户状态(pending_verify/verified/banned)。
|
||
Status consts.TenantStatus `json:"status,omitempty"`
|
||
// StatusDescription 状态描述(便于前端展示)。
|
||
StatusDescription string `json:"statusDescription,omitempty"`
|
||
// CreatedAt 申请创建时间(租户记录创建时间)。
|
||
CreatedAt time.Time `json:"createdAt,omitempty"`
|
||
}
|