feat:完善项目管理,增加科研机构下实验室列表信息
This commit is contained in:
@ -2,11 +2,12 @@ package model
|
||||
|
||||
import "time"
|
||||
|
||||
// ManageExpertVisit 专家浏览记录数据模型
|
||||
type ManageExpertVisit struct {
|
||||
Model
|
||||
ExpertID uint64 `gorm:"column:expert_id;index:idx_product_visit_product;type:int(11);default:0;comment:专家ID" json:"-"`
|
||||
VisitCount int `gorm:"column:visit_count;type:int(8);default:0;comment:浏览次数" json:"visit_count"`
|
||||
VisitAt time.Time `gorm:"column:visit_at;type:datetime;not null;comment:浏览时间" json:"visit_at"`
|
||||
ExpertID uint64 `gorm:"column:expert_id;index:idx_expert_visit_expert;type:int(11);default:0;comment:专家ID" json:"-"`
|
||||
Count int `gorm:"column:count;type:int(8);default:0;comment:浏览次数" json:"count"`
|
||||
Date time.Time `gorm:"column:date;type:datetime;not null;comment:浏览时间" json:"date"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
18
app/common/model/manage_laboratory_collect.go
Normal file
18
app/common/model/manage_laboratory_collect.go
Normal file
@ -0,0 +1,18 @@
|
||||
package model
|
||||
|
||||
// ManageLaboratoryCollect 实验室收藏数据模型
|
||||
type ManageLaboratoryCollect struct {
|
||||
Model
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
LaboratoryID uint64 `gorm:"column:laboratory_id;type:int(11);default:0;comment:实验室ID" json:"-"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *ManageLaboratoryCollect) TableName() string {
|
||||
return "manage_laboratory_collect"
|
||||
}
|
||||
|
||||
func NewManageLaboratoryCollect() *ManageLaboratoryCollect {
|
||||
return &ManageLaboratoryCollect{}
|
||||
}
|
21
app/common/model/manage_laboratory_visit.go
Normal file
21
app/common/model/manage_laboratory_visit.go
Normal file
@ -0,0 +1,21 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// ManageLaboratoryVisit 实验室浏览记录数据模型
|
||||
type ManageLaboratoryVisit struct {
|
||||
Model
|
||||
LaboratoryID uint64 `gorm:"column:laboratory_id;index:idx_laboratory_visit_laboratory;type:int(11);default:0;comment:实验室ID" json:"-"`
|
||||
Count int `gorm:"column:count;type:int(8);default:0;comment:浏览次数" json:"count"`
|
||||
Date time.Time `gorm:"column:date;type:datetime;not null;comment:浏览时间" json:"date"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *ManageLaboratoryVisit) TableName() string {
|
||||
return "manage_laboratory_visit"
|
||||
}
|
||||
|
||||
func NewManageLaboratoryVisit() *ManageLaboratoryVisit {
|
||||
return &ManageLaboratoryVisit{}
|
||||
}
|
@ -5,10 +5,10 @@ import "time"
|
||||
// TechnologyProductVisit 技术产品访问数据模型
|
||||
type TechnologyProductVisit struct {
|
||||
Model
|
||||
ProductID uint64 `gorm:"column:product_id;index:idx_product_visit_product;type:int(11);default:0;comment:科技产品ID" json:"product_id"`
|
||||
CompanyID uint64 `gorm:"column:company_id;type:int(11);default:0;comment:公司ID" json:"company_id"`
|
||||
VisitCount int `gorm:"column:visit_count;type:int(8);default:0;comment:浏览次数" json:"visit_count"`
|
||||
VisitAt time.Time `gorm:"column:visit_at;type:datetime;not null;comment:浏览时间" json:"visit_at"`
|
||||
ProductID uint64 `gorm:"column:product_id;index:idx_product_visit_product;type:int(11);default:0;comment:科技产品ID" json:"product_id"`
|
||||
CompanyID uint64 `gorm:"column:company_id;type:int(11);default:0;comment:公司ID" json:"company_id"`
|
||||
Count int `gorm:"column:count;type:int(8);default:0;comment:浏览次数" json:"count"`
|
||||
Date time.Time `gorm:"column:date;type:datetime;not null;comment:浏览时间" json:"date"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
Reference in New Issue
Block a user