feat:完善项目信息

This commit is contained in:
henry
2021-12-27 11:12:37 +08:00
parent 41aa6f337c
commit 4926c5b765
9 changed files with 96 additions and 44 deletions

View File

@ -1,18 +0,0 @@
package model
// ManageExpertCollect 专家收藏数据模型
type ManageExpertCollect struct {
Model
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
ExpertID uint64 `gorm:"column:expert_id;type:int(11);default:0;comment:专家ID" json:"-"`
ModelDeleted
ModelAt
}
func (m *ManageExpertCollect) TableName() string {
return "manage_expert_collect"
}
func NewManageExpertCollect() *ManageExpertCollect {
return &ManageExpertCollect{}
}

View File

@ -15,6 +15,8 @@ type UserCollectKind int
const (
// UserCollectKindForLaboratory 实验室
UserCollectKindForLaboratory UserCollectKind = iota + 1
// UserCollectKindForExpert 专家
UserCollectKindForExpert
)
func (m *UserCollect) TableName() string {

View File

@ -19,6 +19,8 @@ type UserVisitKind int
const (
// UserVisitKindForLaboratory 实验室
UserVisitKindForLaboratory UserCollectKind = iota + 1
// UserVisitKindForExpert 专家
UserVisitKindForExpert
)
func (m *UserVisit) TableName() string {