[feat] 调整 User.GetUserInfo() 返回类型

This commit is contained in:
what 2023-10-29 12:49:56 +08:00
parent 0cd70a2070
commit d775bd6c0f
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ func (this user) Nickname() string {
return this.nickname
}
func (this user) GetUserInfo() any {
func (this user) GetUserInfo() map[string]any {
return nil
}

View File

@ -10,7 +10,7 @@ type User interface {
// 用户昵称
Nickname() string
// 用户明细
GetUserInfo() any
GetUserInfo() map[string]any
// 用户权限
Roles() []string
// 用户权限检查