From d775bd6c0f86d27e1fa6cbba32c0cf6839ed4fc8 Mon Sep 17 00:00:00 2001 From: what Date: Sun, 29 Oct 2023 12:49:56 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E8=B0=83=E6=95=B4=20User.GetUserInfo(?= =?UTF-8?q?)=20=E8=BF=94=E5=9B=9E=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/user.go | 2 +- user.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/user.go b/base/user.go index dfb7f1a..db7e888 100644 --- a/base/user.go +++ b/base/user.go @@ -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 } diff --git a/user.go b/user.go index ff31576..550ef49 100644 --- a/user.go +++ b/user.go @@ -10,7 +10,7 @@ type User interface { // 用户昵称 Nickname() string // 用户明细 - GetUserInfo() any + GetUserInfo() map[string]any // 用户权限 Roles() []string // 用户权限检查