package goods type Content struct { ID uint `gorm:"column:id;primary_key" json:"id"` GoodsID uint `gorm:"column:goods_id" json:"goodsId"` Content string `gorm:"column:content" json:"content"` } // TableName sets the insert table name for this struct type func (c *Content) TableName() string { return "recook_goods_content" }