feat:完善信息
This commit is contained in:
@ -66,6 +66,23 @@ const (
|
||||
AccountStatusForDisable
|
||||
)
|
||||
|
||||
// ExamineStatus 审核状态
|
||||
type ExamineStatus struct {
|
||||
Status ExamineStatusKind `gorm:"column:status;type:tinyint(1);default:0;comment:审核状态(0:审核中,1:审核通过,2:审核拒绝)" json:"status"`
|
||||
}
|
||||
|
||||
// ExamineStatusKind 审核状态
|
||||
type ExamineStatusKind int
|
||||
|
||||
const (
|
||||
// ExamineStatusForOngoing 审核中
|
||||
ExamineStatusForOngoing ExamineStatusKind = iota
|
||||
// ExamineStatusForAgree 审核通过
|
||||
ExamineStatusForAgree
|
||||
// ExamineStatusForRefuse 审核拒绝
|
||||
ExamineStatusForRefuse
|
||||
)
|
||||
|
||||
type Area struct {
|
||||
Province uint64 `gorm:"column:province;type:int;default:0;comment:所在省" json:"province"`
|
||||
City uint64 `gorm:"column:city;type:int;default:0;comment:所在市" json:"city"`
|
||||
|
37
app/common/model/manage_company.go
Normal file
37
app/common/model/manage_company.go
Normal file
@ -0,0 +1,37 @@
|
||||
package model
|
||||
|
||||
import "SciencesServer/utils"
|
||||
|
||||
// ManageCompany 公司企业管理
|
||||
type ManageCompany struct {
|
||||
Model
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
Name string `gorm:"column:name;type:varchar(30);default:null;comment:名称" json:"name"`
|
||||
Code string `gorm:"column:code;type:varchar(30);default:null;comment:信用代码" json:"code"`
|
||||
Image
|
||||
Area
|
||||
Industry uint64 `gorm:"column:industry;type:int(11);default:0;comment:行业领域" json:"industry"`
|
||||
Keyword string `gorm:"column:keyword;type:varchar(255);default:null;comment:关键词" json:"keyword"`
|
||||
Introduce string `gorm:"column:introduce;type:text;comment:介绍描述" json:"introduce"`
|
||||
ExamineStatus
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *ManageCompany) TableName() string {
|
||||
return "manage_company"
|
||||
}
|
||||
|
||||
func (m *ManageCompany) GetKeywordAttribute() []string {
|
||||
keywords := make([]string, 0)
|
||||
_ = utils.FromJSON(m.Keyword, &keywords)
|
||||
return keywords
|
||||
}
|
||||
|
||||
func (m *ManageCompany) SetKeywordAttribute(keywords []string) {
|
||||
m.Keyword = utils.AnyToJSON(keywords)
|
||||
}
|
||||
|
||||
func NewManageCompany() *ManageCompany {
|
||||
return &ManageCompany{}
|
||||
}
|
@ -3,7 +3,7 @@ package model
|
||||
type UserTenant struct {
|
||||
Model
|
||||
ModelTenant
|
||||
UID uint64 `gorm:"column:uid;index:idx_tenant_user_uuid;type:int;default:0;comment:用户表UUID" json:"-"`
|
||||
UID uint64 `gorm:"column:uid;index:idx_user_tenant_uid;type:int;default:0;comment:用户表UUID" json:"-"`
|
||||
Avatar string `gorm:"column:avatar;type:varchar(255);default:null;comment:头像" json:"avatar"`
|
||||
Name string `gorm:"column:name;type:varchar(20);default:null;comment:真实姓名" json:"name"`
|
||||
Email string `gorm:"column:email;type:varchar(50);default:null;comment:邮箱" json:"email"`
|
||||
|
Reference in New Issue
Block a user