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

@ -21,7 +21,7 @@ type TechnologyDemand struct {
BudgetMode TechnologyDemandBudgetMode `gorm:"column:budget_mode;type:tinyint(1);default:1;comment:预算模式1具体金额2面议" json:"budget_mode"`
Deadline time.Time `gorm:"column:deadline;type:date;not null;comment:截止时间" json:"deadline"`
Other string `gorm:"column:other;type:varchar(255);default:'';comment:其他信息" json:"-"`
Status TechnologyDemandStatus `gorm:"column:status;type:tinyint(1);default:0;comment:状态" json:"status"`
TechnologyStatus
ModelDeleted
ModelAt
}
@ -46,20 +46,6 @@ const (
TechnologyDemandBudgetModeForToFace
)
// TechnologyDemandStatus 需求文档状态
type TechnologyDemandStatus int
const (
// TechnologyDemandStatusForDraft 草稿箱
TechnologyDemandStatusForDraft TechnologyDemandStatus = iota
// TechnologyDemandStatusForExamining 审核中
TechnologyDemandStatusForExamining
// TechnologyDemandStatusForAgree 审核通过
TechnologyDemandStatusForAgree
// TechnologyDemandStatusForRefuse 审核拒绝
TechnologyDemandStatusForRefuse
)
func (m *TechnologyDemand) TableName() string {
return m.NewTableName("technology_demand")
}