增加多角色功能和角色切换功能
调整前端获取用户信息方式
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package system
|
||||
|
||||
type SysUseAuthority struct {
|
||||
SysUserId uint `gorm:"column:sys_user_id"`
|
||||
SysAuthorityAuthorityId string `gorm:"column:sys_authority_authority_id"`
|
||||
}
|
||||
|
||||
func (s *SysUseAuthority) TableName() string {
|
||||
return "sys_user_authority"
|
||||
}
|
||||
Reference in New Issue
Block a user