feat:完善信息
This commit is contained in:
@ -21,6 +21,7 @@ type TechnologyTopic struct {
|
||||
Kind TechnologyTopicKind `gorm:"column:kind;type:tinyint(1);default:0comment:类型" 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"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
@ -44,6 +45,20 @@ 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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user