Files
quyun/backend_v1/pkg/fields/posts.go
Rogee 49072ddd79
Some checks failed
build quyun / Build (push) Failing after 1m30s
migrate controllers
2025-12-19 23:33:02 +08:00

24 lines
498 B
Go

package fields
import "go.ipao.vip/gen/types"
type MediaAsset struct {
Type string `json:"type"`
Media int64 `json:"media"`
Metas *MediaMetas `json:"metas,omitempty"`
Mark *string `json:"mark,omitempty"`
}
// JsonType
func (t MediaAsset) JsonType() types.JSONType[MediaAsset] {
return types.NewJSONType(t)
}
// swagger:enum PostStatus
// ENUM( draft, published )
type PostStatus int16
// swagger:enum PostType
// ENUM( Article, Picture, Video, Audio)
type PostType int16