You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
589 B
Go

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"
}