Merge pull request '添加详情' (#100) from test into master
Reviewed-on: https://git.oa00.com/recook/backend_v2/pulls/100master
commit
98d5de6fc1
@ -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