From 445d3c9d0e6eed9ca65f8de22c4f5177b6485506 Mon Sep 17 00:00:00 2001 From: Bingchang Chen <19990626.love@163.com> Date: Fri, 31 Dec 2021 19:55:34 +0800 Subject: [PATCH] feat: support spring security oauth2 (#408) Signed-off-by: abingcbc --- controllers/account.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/account.go b/controllers/account.go index b86b7187..e5d4eb6f 100644 --- a/controllers/account.go +++ b/controllers/account.go @@ -62,6 +62,7 @@ type Response struct { Status string `json:"status"` Msg string `json:"msg"` Sub string `json:"sub"` + Name string `json:"name"` Data interface{} `json:"data"` Data2 interface{} `json:"data2"` } @@ -222,6 +223,7 @@ func (c *ApiController) GetAccount() { resp := Response{ Status: "ok", Sub: user.Id, + Name: user.Name, Data: user, Data2: organization, }