feat: spec stage 1

This commit is contained in:
2025-12-17 22:28:47 +08:00
parent e28830cfaf
commit 971c02fa07
5 changed files with 1939 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -52,3 +52,43 @@ func (t TenantStatus) Description() string {
// 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