feat:优化项目信息

This commit is contained in:
henry
2022-03-05 15:31:22 +08:00
parent dcb5948e91
commit 4dc8deaadb
27 changed files with 401 additions and 138 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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 (