From 5ebd42daa5ed5083e8dd0bb333b0e89f99df3bd4 Mon Sep 17 00:00:00 2001 From: liaokaishan <874998826@qq.com> Date: Mon, 10 Aug 2020 12:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=90=9C=E7=B4=A2=E7=94=A8?= =?UTF-8?q?=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/sso/code_auth.go | 1 - services/sso/get_user.go | 1 - services/sso/refresh_token.go | 1 - services/sso/search_user.go | 5 ++--- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/services/sso/code_auth.go b/services/sso/code_auth.go index 20f6147..8080cb1 100644 --- a/services/sso/code_auth.go +++ b/services/sso/code_auth.go @@ -12,7 +12,6 @@ type CodeAuthRequest struct { } type CodeAuthResponseData struct { - *requests.RpcRequest RefreshToken string `json:"refreshToken"` RefreshTokenExpires int64 `json:"refreshTokenExpires"` Token string `json:"token"` diff --git a/services/sso/get_user.go b/services/sso/get_user.go index 3e39826..e69183d 100644 --- a/services/sso/get_user.go +++ b/services/sso/get_user.go @@ -12,7 +12,6 @@ type GetUserInfoRequest struct { } type GetUserInfoResponseData struct { - *requests.RpcRequest User User `json:"user"` } diff --git a/services/sso/refresh_token.go b/services/sso/refresh_token.go index 7877861..bfa0d5c 100644 --- a/services/sso/refresh_token.go +++ b/services/sso/refresh_token.go @@ -12,7 +12,6 @@ type RefreshTokenRequest struct { } type RefreshTokenResponseData struct { - *requests.RpcRequest Token string `json:"token"` TokenExpires int64 `json:"tokenExpires"` User User `json:"user"` diff --git a/services/sso/search_user.go b/services/sso/search_user.go index fdb04b9..07450a1 100644 --- a/services/sso/search_user.go +++ b/services/sso/search_user.go @@ -10,14 +10,13 @@ type SearchUserRequest struct { Uid string `position:"Body" field:"uid" default:"" ` } -type SearchUserRequestData struct { - *requests.RpcRequest +type SearchUserResponseData struct { User User `json:"user"` } type SearchUserResponse struct { *responses.BaseResponse - Data CodeAuthResponseData `json:"data"` + Data SearchUserResponseData `json:"data"` } func CreateSearchUserRequest() (req *SearchUserRequest) {