package order type Reason struct { ID uint `gorm:"column:id;" json:"id"` Type uint `gorm:"column:type;" json:"type"` Content string `gorm:"column:content" json:"content"` OrderBy uint `gorm:"column:order_by" json:"orderBy"` IsDelete int `gorm:"column:is_delete"` } func (r *Reason) TableName() string { return "recook_order_reason" }