feat:完善项目信息

This commit is contained in:
henry
2022-01-21 11:42:58 +08:00
parent dda20eb011
commit 1c027dd2d1
23 changed files with 125 additions and 113 deletions

View File

@ -24,7 +24,7 @@ type TechnologyAchievement struct {
Introduce string `gorm:"column:introduce;type:text;comment:介绍描述" json:"introduce"`
Source string `gorm:"source:introduce;type:text;comment:成果来源" json:"source"`
Shelf
Status TechnologyAchievementStatus `gorm:"column:status;type:tinyint(1);default:0;comment:状态" json:"status"`
TechnologyStatus
ModelDeleted
ModelAt
}
@ -46,20 +46,6 @@ const (
TechnologyAchievementModeForCharge
)
// TechnologyAchievementStatus 技术成果状态
type TechnologyAchievementStatus int
const (
// TechnologyAchievementStatusForDraft 草稿箱
TechnologyAchievementStatusForDraft TechnologyAchievementStatus = iota
// TechnologyAchievementStatusForExamining 审核中
TechnologyAchievementStatusForExamining
// TechnologyAchievementStatusForAgree 审核通过
TechnologyAchievementStatusForAgree
// TechnologyAchievementStatusForRefuse 审核拒绝
TechnologyAchievementStatusForRefuse
)
func (m *TechnologyAchievement) TableName() string {
return "technology_achievement"
}