feat:完善入驻信息管理
This commit is contained in:
@ -7,23 +7,42 @@ type ManageCompany struct {
|
||||
Model
|
||||
Local
|
||||
InviterID uint64 `gorm:"column:inviter_id;type:int;default:0;comment:邀请人ID" json:"inviter_id"`
|
||||
Kind string `gorm:"column:kind;type:varchar(255);default:'';comment:类型" json:"kind"`
|
||||
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
|
||||
Product string `gorm:"column:product;type:varchar(255);default:'';comment:产品信息" json:"product"`
|
||||
Url string `gorm:"column:url;type:varchar(255);default:'';comment:企业网站" json:"url"`
|
||||
Industry string `gorm:"column:industry;type:varchar(255);default:'';comment:行业领域" json:"industry"`
|
||||
Keyword string `gorm:"column:keyword;type:varchar(255);default:'';comment:关键词" json:"keyword"`
|
||||
License string `gorm:"column:license;type:varchar(255);default:'';comment:营业执照" json:"license"`
|
||||
Industry string `gorm:"column:industry;type:varchar(255);default:'';comment:行业领域" json:"-"`
|
||||
Keyword string `gorm:"column:keyword;type:varchar(255);default:'';comment:关键词" json:"-"`
|
||||
Introduce string `gorm:"column:introduce;type:text;comment:介绍描述" json:"introduce"`
|
||||
Examine
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
type ManageCompanyKind int
|
||||
|
||||
const (
|
||||
ManageCompanyKindForMYQY ManageCompanyKind = iota + 1
|
||||
)
|
||||
|
||||
func (m *ManageCompany) TableName() string {
|
||||
return "manage_company"
|
||||
}
|
||||
|
||||
func (m *ManageCompany) GetKindAttribute() []int {
|
||||
out := make([]int, 0)
|
||||
_ = utils.FromJSON(m.Industry, &out)
|
||||
return out
|
||||
}
|
||||
|
||||
func (m *ManageCompany) SetKindAttribute(value []int) {
|
||||
m.Industry = utils.AnyToJSON(value)
|
||||
}
|
||||
|
||||
func (m *ManageCompany) GetIndustryAttribute() []string {
|
||||
out := make([]string, 0)
|
||||
_ = utils.FromJSON(m.Industry, &out)
|
||||
|
Reference in New Issue
Block a user