feat:完善项目
This commit is contained in:
@ -54,10 +54,6 @@ func (m *Images) AnalysisSlice(domain string) string {
|
||||
return strings.Join(images, ",")
|
||||
}
|
||||
|
||||
type Local struct {
|
||||
Local string `gorm:"column:local;type:varchar(8);default:'';comment:数据位置来源" json:"-"`
|
||||
}
|
||||
|
||||
// AccountStatus 账号状态
|
||||
type AccountStatus struct {
|
||||
Status AccountStatusKind `gorm:"column:status;type:tinyint(1);default:1;comment:状态(1:启用,2:禁用)" json:"-"`
|
||||
|
@ -5,7 +5,7 @@ import "encoding/json"
|
||||
// ServiceDemand 服务需求数据模型
|
||||
type ServiceDemand struct {
|
||||
Model
|
||||
Local
|
||||
ModelTenant
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
Kind string `gorm:"column:kind;type:varchar(50);default:'';comment:需求类型" json:"kind"`
|
||||
Title string `gorm:"column:title;type:varchar(50);default:'';comment:需求名称" json:"title"`
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
// TechnologyAchievement 技术成果数据模型
|
||||
type TechnologyAchievement struct {
|
||||
Model
|
||||
Local
|
||||
ModelTenant
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
Mode TechnologyAchievementMode `gorm:"column:mode;type:tinyint(1);default:1;comment:成果模式" json:"mode"`
|
||||
Title string `gorm:"column:title;type:varchar(100);default:'';comment:成果名称" json:"title"`
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
// TechnologyDemand 技术需求数据模型
|
||||
type TechnologyDemand struct {
|
||||
Model
|
||||
Local
|
||||
ModelTenant
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
Title string `gorm:"column:title;type:varchar(50);default:'';comment:需求名称" json:"title"`
|
||||
Kind string `gorm:"column:kind;type:varchar(50);default:'';comment:需求类别" json:"-"`
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
// TechnologyInstance 技术文档数据模型
|
||||
type TechnologyInstance struct {
|
||||
Model
|
||||
Local
|
||||
ModelTenant
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
PatentID uint64 `gorm:"column:patent_id;type:int;default:0;comment:代表专利" json:"patent_id"`
|
||||
Title string `gorm:"column:title;type:varchar(30);default:'';comment:名称" json:"title"`
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
// TechnologyProduct 技术产品数据模型
|
||||
type TechnologyProduct struct {
|
||||
Model
|
||||
Local
|
||||
ModelTenant
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
Title string `gorm:"column:title;type:varchar(100);default:'';comment:产品名称" json:"title"`
|
||||
Image
|
||||
|
@ -5,7 +5,7 @@ import "time"
|
||||
// TechnologyProject 技术科研项目数据模型
|
||||
type TechnologyProject struct {
|
||||
Model
|
||||
Local
|
||||
ModelTenant
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
Kind string `gorm:"column:kind;type:varchar(100);default:'';comment:类型" json:"kind"`
|
||||
Role TechnologyProjectRole `gorm:"column:role;type:tinyint(1);default:1;comment:课题角色(1:承担单位,2:参与单位)" json:"role"`
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
// TechnologyTopic 技术课题数据模型
|
||||
type TechnologyTopic struct {
|
||||
Model
|
||||
Local
|
||||
ModelTenant
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
Title string `gorm:"column:title;type:varchar(100);default:'';comment:名称" json:"title"`
|
||||
Code string `gorm:"column:code;type:varchar(30);default:'';comment:编号" json:"code"`
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
// UserCooperateEnterprise 用户企业数据模型管理
|
||||
type UserCooperateEnterprise struct {
|
||||
Model
|
||||
Local
|
||||
ModelTenant
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
Mode UserCooperateEnterpriseMode `gorm:"column:mode;type:int;default:0;comment:合作模式(1:已合作,2:想合作)" json:"mode"`
|
||||
Title string `gorm:"column:title;type:varchar(30);default:'';comment:企业名称" json:"title"`
|
||||
|
Reference in New Issue
Block a user