2020-08-07 16:22:28 +08:00
|
|
|
package sso
|
|
|
|
|
|
|
|
import (
|
|
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
|
|
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
|
|
|
|
)
|
|
|
|
|
|
|
|
type GetUserInfoRequest struct {
|
|
|
|
*requests.RpcRequest
|
2020-08-07 17:43:07 +08:00
|
|
|
Token string `position:"Body" field:"token" default:"" `
|
|
|
|
Ident string `position:"Body" field:"ident" default:"" `
|
2020-08-07 16:22:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type GetUserInfoResponseData struct {
|
|
|
|
User User `json:"user"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetUserInfoResponse struct {
|
|
|
|
*responses.BaseResponse
|
|
|
|
Data GetUserInfoResponseData `json:"data"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func CreateGetUserInfoRequest() (req *GetUserInfoRequest) {
|
|
|
|
req = &GetUserInfoRequest{RpcRequest: &requests.RpcRequest{}}
|
|
|
|
req.InitWithApiInfo(HOST, VERSION, "/api/userSess/getUserInfo")
|
|
|
|
req.Method = requests.POST
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func CreateGetUserInfoResponse() (response *GetUserInfoResponse) {
|
|
|
|
response = &GetUserInfoResponse{
|
|
|
|
BaseResponse: &responses.BaseResponse{},
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|