feat:优化项目信息
This commit is contained in:
@ -3,7 +3,7 @@ package model
|
||||
// SysUserDepartment 用户部门信息数据模型
|
||||
type SysUserDepartment struct {
|
||||
Model
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
UserTenantID uint64 `gorm:"column:user_tenant_id;type:int;default:0;comment:用户租户ID" json:"-"`
|
||||
DepartmentID uint64 `gorm:"column:department_id;type:int;default:0;comment:部门ID" json:"-"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
|
@ -2,8 +2,8 @@ package model
|
||||
|
||||
type SysUserRole struct {
|
||||
Model
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
RoleID uint64 `gorm:"column:role_id;type:int;default:0;comment:角色ID" json:"-"`
|
||||
UserTenantID uint64 `gorm:"column:user_tenant_id;type:int;default:0;comment:用户租户ID" json:"-"`
|
||||
RoleID uint64 `gorm:"column:role_id;type:int;default:0;comment:角色ID" json:"-"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
@ -1,16 +1,16 @@
|
||||
package model
|
||||
|
||||
// SysUserTenant 用户租户信息
|
||||
type SysUserTenant struct {
|
||||
Model
|
||||
ModelTenant
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
Department string `gorm:"column:department;type:varchar(100);default:'';comment:部门信息" json:"department"`
|
||||
Role string `gorm:"column:role;type:varchar(100);default:'';comment:角色信息" json:"role"`
|
||||
Identity SysUserTenantIdentity `gorm:"column:identity;type:tinyint(1);default:0;comment:用户身份(1:管理员,2:用户)" json:"-"`
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
Identity SysUserTenantIdentity `gorm:"column:identity;type:tinyint(1);default:0;comment:用户身份(1:管理员,2:用户)" json:"-"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
// SysUserTenantIdentity 用户租户身份信息
|
||||
type SysUserTenantIdentity int
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user