28 lines
946 B
Go
28 lines
946 B
Go
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:'';comment:身份名称" json:"name"`
|
|
RegisterCount int `gorm:"column:register_count;type:tinyint(3);default:0;comment:每个平台下可以最大注册人数,-1不作限制" json:"register_count"`
|
|
IsExamine SysIdentityExamine `gorm:"column:is_examine;type:tinyint(1);default:1;comment:是否需要后台审核" json:"is_examine"`
|
|
ModelDeleted
|
|
ModelAt
|
|
}
|
|
|
|
type SysIdentityExamine int
|
|
|
|
const (
|
|
SysIdentityExamineForNot SysIdentityExamine = iota
|
|
SysIdentityExamineForYes
|
|
)
|
|
|
|
func (m *SysIdentity) TableName() string {
|
|
return "sys_identity"
|
|
}
|
|
|
|
func NewSysIdentity() *SysIdentity {
|
|
return &SysIdentity{}
|
|
}
|