migrate controllers
Some checks failed
build quyun / Build (push) Failing after 1m30s

This commit is contained in:
2025-12-19 23:33:02 +08:00
parent 557a641f41
commit 49072ddd79
37 changed files with 1944 additions and 69 deletions

View File

@@ -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