feat: update

This commit is contained in:
rogeecn
2025-03-22 18:23:39 +08:00
parent 12761e1adb
commit 12d5158ad3
11 changed files with 890 additions and 34 deletions

27
database/fields/posts.go Normal file
View File

@@ -0,0 +1,27 @@
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",
// 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