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

@ -20,7 +20,7 @@ type TechnologyTopic struct {
Kind TechnologyTopicKind `gorm:"column:kind;type:tinyint(1);default:0;comment:类型" json:"kind"`
BeginAt time.Time `gorm:"column:begin_at;type:datetime;not null;comment:开始时间" json:"begin_at"`
FinishAt time.Time `gorm:"column:finish_at;type:datetime;not null;comment:结束时间" json:"finish_at"`
Status TechnologyTopicStatus `gorm:"column:status;type:tinyint(1);default:0;comment:状态" json:"status"`
TechnologyStatus
ModelDeleted
ModelAt
}
@ -40,24 +40,6 @@ const (
// TechnologyTopicKind 技术课题类型
type TechnologyTopicKind int
const (
//TechnologyTopicKindFor
)
// TechnologyTopicStatus 技术课题状态
type TechnologyTopicStatus int
const (
// TechnologyTopicStatusForDraft 草稿箱
TechnologyTopicStatusForDraft TechnologyTopicStatus = iota
// TechnologyTopicStatusForExamining 审核中
TechnologyTopicStatusForExamining
// TechnologyTopicStatusForAgree 审核通过
TechnologyTopicStatusForAgree
// TechnologyTopicStatusForRefuse 审核拒绝
TechnologyTopicStatusForRefuse
)
func (m *TechnologyTopic) TableName() string {
return m.NewTableName("technology_topic")
}