feat:完善项目

This commit is contained in:
henry
2022-01-15 16:48:49 +08:00
parent 57daf5119d
commit 6d075dab4f
33 changed files with 196 additions and 154 deletions

View File

@ -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:"-"`

View File

@ -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"`

View File

@ -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"`

View File

@ -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:"-"`

View File

@ -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"`

View File

@ -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

View File

@ -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"`

View File

@ -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"`

View File

@ -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"`