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

@ -117,6 +117,24 @@ const (
InvalidStatusForNot
)
// TechnologyStatus 科技信息状态
type TechnologyStatus struct {
Status TechnologyStatusKind `gorm:"column:status;type:tinyint(1);default:0;comment:状态" json:"status"`
}
type TechnologyStatusKind int
const (
// TechnologyStatusKindForDraft 草稿箱
TechnologyStatusKindForDraft TechnologyStatusKind = iota
// TechnologyStatusKindForExamining 审核中
TechnologyStatusKindForExamining
// TechnologyStatusKindForAgree 审核通过
TechnologyStatusKindForAgree
// TechnologyStatusKindForRefuse 审核拒绝
TechnologyStatusKindForRefuse
)
type Area struct {
Province string `gorm:"column:province;type:varchar(8);default:'';comment:所在省" json:"province"`
City string `gorm:"column:city;type:varchar(8);default:'';comment:所在市" json:"city"`