feat:优化信息,增加技术成果搜索
This commit is contained in:
@ -14,7 +14,7 @@ type TechnologyAchievement struct {
|
||||
Title string `gorm:"column:title;type:varchar(100);default:'';comment:成果名称" json:"title"`
|
||||
Image
|
||||
File string `gorm:"column:file;type:varchar(255);default:'';comment:证明材料" json:"file"`
|
||||
Industry string `gorm:"column:industry;type:varchar(255);default:'';comment:所属领域;行业信息" json:"industry"`
|
||||
Industry string `gorm:"column:industry;type:varchar(255);default:'';comment:所属领域;行业信息" json:"-"`
|
||||
Customer string `gorm:"column:customer;type:varchar(255);default:'';comment:应用客户" json:"-"`
|
||||
Maturity config.TechnologyMaturity `gorm:"column:maturity;type:tinyint(1);default:0;comment:技术成熟度" json:"maturity"`
|
||||
LeadStandard TechnologyProductLeadStandard `gorm:"column:lead_standard;type:tinyint(1);default:0;comment:领先标准" json:"lead_standard"`
|
||||
|
18
app/common/model/technology_achievement_collect.go
Normal file
18
app/common/model/technology_achievement_collect.go
Normal file
@ -0,0 +1,18 @@
|
||||
package model
|
||||
|
||||
// TechnologyAchievementCollect 科技成果收藏数据模型
|
||||
type TechnologyAchievementCollect struct {
|
||||
Model
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
AchievementID uint64 `gorm:"column:achievement_id;type:int(11);default:0;comment:科技成果ID" json:"-"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *TechnologyAchievementCollect) TableName() string {
|
||||
return "technology_achievement_collect"
|
||||
}
|
||||
|
||||
func NewTechnologyAchievementCollect() *TechnologyAchievementCollect {
|
||||
return &TechnologyAchievementCollect{}
|
||||
}
|
Reference in New Issue
Block a user