JM-WechatMini/model/app/favorite.go

19 lines
589 B
Go
Raw Normal View History

2023-11-02 04:34:46 +08:00
package app
import "miniapp/global"
type Favorite struct {
global.GVA_MODEL
UserId int `json:"userId" gorm:"not null;column:user_id;comment:'用户id'"` // 用户id
FavoriteId int `json:"favoriteId" gorm:"not null;comment:收藏id"` // 收藏id
Cover string `json:"cover" gorm:"size:50;comment:封面"`
Titte string `json:"title" comment:"收藏商品名称"` // 收藏商品名称
Introduction string `json:"introduction" comment:"简介"` // 简介
}
// TableName 表名
func (Favorite) TableName() string {
return "sys_favorite"
}