feat:优化项目信息
This commit is contained in:
20
app/common/model/sys_identity.go
Normal file
20
app/common/model/sys_identity.go
Normal file
@ -0,0 +1,20 @@
|
||||
package model
|
||||
|
||||
// SysIdentity 身份管理数据模型
|
||||
type SysIdentity struct {
|
||||
Model
|
||||
Identity int `gorm:"column:identity;uniqueIndex:idx_sys_identity;type:tinyint(3);default:0;comment:身份信息" json:"identity"`
|
||||
Name string `gorm:"column:name;type:varchar(20);default:null;comment:身份名称" json:"name"`
|
||||
RegisterCount int `gorm:"column:register_count;type:tinyint(3);default:0;comment:每个平台下可以最大注册人数,-1不作限制" json:"register_count"`
|
||||
IsExamine int `gorm:"column:is_examine;type:tinyint(1);default:0;comment:是否需要后台审核" json:"is_examine"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *SysIdentity) TableName() string {
|
||||
return "sys_identity"
|
||||
}
|
||||
|
||||
func NewSysIdentity() *SysIdentity {
|
||||
return &SysIdentity{}
|
||||
}
|
Reference in New Issue
Block a user