package consts // Format // // // swagger:enum CacheKey // // ENUM( // // VerifyCode = "code:__CHANNEL__:%s", // // ) // swagger:enum Role // ENUM( user, super_admin) type Role string // swagger:enum UserStatus // ENUM(pending_verify, verified, banned, ) type UserStatus string // Description func (t UserStatus) Description() string { switch t { case UserStatusPendingVerify: return "待审核" case UserStatusVerified: return "已审核" case UserStatusBanned: return "已封禁" default: return "未知状态" } } // tenants // swagger:enum TenantStatus // ENUM( pending_verify, verified, banned ) type TenantStatus string // Description in chinese func (t TenantStatus) Description() string { switch t { case "pending_verify": return "待审核" case "verified": return "已审核" case "banned": return "已封禁" default: return "未知状态" } } // swagger:enum TenantUserRole // ENUM( member, tenant_admin) type TenantUserRole string // media_assets // swagger:enum MediaAssetType // ENUM( video, audio, image ) type MediaAssetType string // swagger:enum MediaAssetStatus // ENUM( uploaded, processing, ready, failed, deleted ) type MediaAssetStatus string // contents // swagger:enum ContentStatus // ENUM( draft, reviewing, published, unpublished, blocked ) type ContentStatus string // swagger:enum ContentVisibility // ENUM( public, tenant_only, private ) type ContentVisibility string // swagger:enum ContentAssetRole // ENUM( main, cover, preview ) type ContentAssetRole string // content_prices // swagger:enum DiscountType // ENUM( none, percent, amount ) type DiscountType string // swagger:enum Currency // ENUM( CNY ) type Currency string // content_access // swagger:enum ContentAccessStatus // ENUM( active, revoked, expired ) type ContentAccessStatus string