Files
quyun/backend/database/fields/posts.go
2025-04-09 20:32:31 +08:00

29 lines
575 B
Go

package fields
type MediaAsset struct {
Type MediaAssetType `json:"type"`
Media int64 `json:"media"`
Mark *string `json:"mark,omitempty"`
}
// swagger:enum MediaAssetType
// ENUM(
// Unknown = "unknown",
// Poster = "poster",
// Image = "image",
// Video = "video",
// Audio = "audio",
// Document = "document",
// Archive = "archive",
// Other = "other"
// )
type MediaAssetType string
// swagger:enum PostStatus
// ENUM( draft, published )
type PostStatus int16
// swagger:enum PostType
// ENUM( Article, Picture, Video, Audio)
type PostType int16