This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package fields
|
||||
|
||||
import "go.ipao.vip/gen/types"
|
||||
|
||||
type MediaAsset struct {
|
||||
Type string `json:"type"`
|
||||
Media int64 `json:"media"`
|
||||
@@ -7,6 +9,11 @@ type MediaAsset struct {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user