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) {