feat:完善项目信息
This commit is contained in:
@ -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"`
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -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")
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ type TechnologyInstance struct {
|
||||
Purpose string `gorm:"column:purpose;type:text;comment:意图-承担科研项目" json:"purpose"`
|
||||
Remark string `gorm:"column:remark;type:varchar(255);default:'';comment:备注信息" json:"remark"`
|
||||
Shelf
|
||||
Status TechnologyInstanceStatus `gorm:"column:status;type:tinyint(1);default:0;comment:状态" json:"status"`
|
||||
TechnologyStatus
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
@ -47,20 +47,6 @@ const (
|
||||
TechnologyInstanceSourceForOther
|
||||
)
|
||||
|
||||
// TechnologyInstanceStatus 技术文档状态
|
||||
type TechnologyInstanceStatus int
|
||||
|
||||
const (
|
||||
// TechnologyInstanceStatusForDraft 草稿箱
|
||||
TechnologyInstanceStatusForDraft TechnologyInstanceStatus = iota
|
||||
// TechnologyInstanceStatusForExamining 审核中
|
||||
TechnologyInstanceStatusForExamining
|
||||
// TechnologyInstanceStatusForAgree 审核通过
|
||||
TechnologyInstanceStatusForAgree
|
||||
// TechnologyInstanceStatusForRefuse 审核拒绝
|
||||
TechnologyInstanceStatusForRefuse
|
||||
)
|
||||
|
||||
func (m *TechnologyInstance) TableName() string {
|
||||
return m.NewTableName("technology_instance")
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ type TechnologyProduct struct {
|
||||
Keyword string `gorm:"column:keyword;type:varchar(255);default:'';comment:关键词" json:"-"`
|
||||
Introduce string `gorm:"column:introduce;type:text;comment:介绍描述" json:"introduce"`
|
||||
Shelf
|
||||
Status TechnologyProductStatus `gorm:"column:status;type:tinyint(1);default:0;comment:状态" json:"status"`
|
||||
TechnologyStatus
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
@ -41,20 +41,6 @@ const (
|
||||
TechnologyProductLeadStandardForInternationalLX
|
||||
)
|
||||
|
||||
// TechnologyProductStatus 状态
|
||||
type TechnologyProductStatus int
|
||||
|
||||
const (
|
||||
// TechnologyProductStatusForDraft 草稿箱
|
||||
TechnologyProductStatusForDraft TechnologyProductStatus = iota
|
||||
// TechnologyProductStatusForExamining 审核中
|
||||
TechnologyProductStatusForExamining
|
||||
// TechnologyProductStatusForAgree 审核通过
|
||||
TechnologyProductStatusForAgree
|
||||
// TechnologyProductStatusForRefuse 审核拒绝
|
||||
TechnologyProductStatusForRefuse
|
||||
)
|
||||
|
||||
// TechnologyProductShelfStatus 上下架状态
|
||||
type TechnologyProductShelfStatus int
|
||||
|
||||
|
@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user