This commit is contained in:
16
backend_v1/pkg/fields/posts.go
Normal file
16
backend_v1/pkg/fields/posts.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package fields
|
||||
|
||||
type MediaAsset struct {
|
||||
Type string `json:"type"`
|
||||
Media int64 `json:"media"`
|
||||
Metas *MediaMetas `json:"metas,omitempty"`
|
||||
Mark *string `json:"mark,omitempty"`
|
||||
}
|
||||
|
||||
// swagger:enum PostStatus
|
||||
// ENUM( draft, published )
|
||||
type PostStatus int16
|
||||
|
||||
// swagger:enum PostType
|
||||
// ENUM( Article, Picture, Video, Audio)
|
||||
type PostType int16
|
||||
Reference in New Issue
Block a user