63 lines
1.8 KiB
Go
63 lines
1.8 KiB
Go
package model
|
|
|
|
import (
|
|
"SciencesServer/utils"
|
|
)
|
|
|
|
// ManageResearch 科研机构入住信息管理
|
|
type ManageResearch struct {
|
|
Model
|
|
ModelTenant
|
|
Name string `gorm:"column:name;type:varchar(30);default:'';comment:名称" json:"name"`
|
|
Code string `gorm:"column:code;type:varchar(30);default:'';comment:信用代码" json:"code"`
|
|
Image
|
|
Area
|
|
Position string `gorm:"column:position;type:varchar(50);default:'';comment:坐标" json:"-"`
|
|
Industry string `gorm:"column:industry;type:varchar(255);default:'';comment:所属领域;行业信息" json:"-"`
|
|
Keyword string `gorm:"column:keyword;type:varchar(255);default:'';comment:关键词" json:"keyword"`
|
|
License string `gorm:"column:license;type:varchar(255);default:'';comment:营业执照" json:"license"`
|
|
Research string `gorm:"column:research;type:varchar(255);default:'';comment:研究信息" json:"research"`
|
|
Introduce string `gorm:"column:introduce;type:text;comment:介绍描述" json:"introduce"`
|
|
Examine
|
|
ModelDeleted
|
|
ModelAt
|
|
}
|
|
|
|
func (m *ManageResearch) TableName() string {
|
|
return "manage_research"
|
|
}
|
|
|
|
func (m *ManageResearch) GetIndustryAttribute() []string {
|
|
out := make([]string, 0)
|
|
_ = utils.FromJSON(m.Industry, &out)
|
|
return out
|
|
}
|
|
|
|
func (m *ManageResearch) SetIndustryAttribute(value []string) {
|
|
m.Industry = utils.AnyToJSON(value)
|
|
}
|
|
|
|
func (m *ManageResearch) GetKeywordAttribute() []string {
|
|
out := make([]string, 0)
|
|
_ = utils.FromJSON(m.Keyword, &out)
|
|
return out
|
|
}
|
|
|
|
func (m *ManageResearch) SetKeywordAttribute(value []string) {
|
|
m.Keyword = utils.AnyToJSON(value)
|
|
}
|
|
|
|
func (m *ManageResearch) GetResearchAttribute() []string {
|
|
out := make([]string, 0)
|
|
_ = utils.FromJSON(m.Research, &out)
|
|
return out
|
|
}
|
|
|
|
func (m *ManageResearch) SetResearchAttribute(value []string) {
|
|
m.Research = utils.AnyToJSON(value)
|
|
}
|
|
|
|
func NewManageResearch() *ManageResearch {
|
|
return &ManageResearch{}
|
|
}
|