parent
124534c090
commit
bca1726097
@ -0,0 +1,12 @@
|
|||||||
|
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"
|
||||||
|
}
|
Loading…
Reference in new issue