feat:完善信息
This commit is contained in:
@ -51,6 +51,10 @@ func (m *Images) AnalysisSlice(domain string) []string {
|
||||
return images
|
||||
}
|
||||
|
||||
type Local struct {
|
||||
Local uint64 `gorm:"column:local;type:int(11);default:0;comment:数据位置来源" json:"-"`
|
||||
}
|
||||
|
||||
// AccountStatus 账号状态
|
||||
type AccountStatus struct {
|
||||
Status AccountStatusKind `gorm:"column:status;type:tinyint(1);default:1;comment:状态(1:启用,2:禁用)" json:"-"`
|
||||
|
@ -5,6 +5,7 @@ import "SciencesServer/utils"
|
||||
// ManageCompany 公司企业管理
|
||||
type ManageCompany struct {
|
||||
Model
|
||||
Local
|
||||
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"`
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
// ManageExpert 专家入驻信息管理
|
||||
type ManageExpert struct {
|
||||
Model
|
||||
Local
|
||||
ModelTenant
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
Area
|
||||
|
@ -7,6 +7,7 @@ import (
|
||||
// ManageLaboratory 实验室信息管理
|
||||
type ManageLaboratory struct {
|
||||
Model
|
||||
Local
|
||||
ModelTenant
|
||||
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"`
|
||||
|
@ -2,6 +2,7 @@ package model
|
||||
|
||||
type SysTenant struct {
|
||||
Model
|
||||
Key string `gorm:"column:key;type:varchar(30);default:null;comment:key" json:"key"`
|
||||
ParentID uint64 `gorm:"column:parent_id;type:int;default:0;comment:父级ID" json:"-"`
|
||||
Image
|
||||
Name string `gorm:"column:name;type:varchar(30);default:null;comment:名称" json:"name"`
|
||||
@ -12,6 +13,7 @@ type SysTenant struct {
|
||||
Industry uint64 `gorm:"column:industry;type:int(11);default:0;comment:所属领域" json:"industry"`
|
||||
Introduce string `gorm:"column:introduce;type:text;comment:介绍描述" json:"introduce"`
|
||||
Config string `gorm:"column:config;type:varchar(255);default:null;comment:配置信息" json:"-"`
|
||||
Remark string `gorm:"column:remark;type:varchar(255);default:null;comment:备注信息" json:"remark"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ import (
|
||||
|
||||
type SysUser struct {
|
||||
Model
|
||||
Local
|
||||
UUID uint64 `gorm:"column:uuid;uniqueIndex:idx_sys_user_uuid;type:int;default:0;comment:用户唯一UUID" json:"-"`
|
||||
Account string `gorm:"column:account;type:varchar(50);default:null;comment:账户名" json:"account"`
|
||||
Avatar string `gorm:"column:avatar;type:varchar(255);default:null;comment:头像" json:"avatar"`
|
||||
|
Reference in New Issue
Block a user