package category import ( "product/backend/module/base" ) const tableName = moduleName type Body struct { State bool `gorm:"" json:"state"` } type Model struct { Body base.Model } type PostModel struct { Model } type PutModel struct { Model ID uint `gorm:"primarykey" json:"id" binding:"required"` } func (*Model) TableName() string { return tableName } type GetReq struct { base.GetReq }