Files
quyun-v2/backend/app/http/web/dto/tenant_apply.go
2025-12-25 11:12:11 +08:00

34 lines
1.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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"`
}