7
0
gaore-common-sdk-go/services/sso/search_user.go

35 lines
795 B
Go
Raw Normal View History

2020-08-10 12:09:23 +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 SearchUserRequest struct {
*requests.RpcRequest
Uid string `position:"Body" field:"uid" default:"" `
}
2020-08-10 12:12:05 +08:00
type SearchUserResponseData struct {
2020-08-10 12:09:23 +08:00
User User `json:"user"`
}
type SearchUserResponse struct {
*responses.BaseResponse
2020-08-10 12:12:05 +08:00
Data SearchUserResponseData `json:"data"`
2020-08-10 12:09:23 +08:00
}
func CreateSearchUserRequest() (req *SearchUserRequest) {
req = &SearchUserRequest{RpcRequest: &requests.RpcRequest{}}
req.InitWithApiInfo(HOST, VERSION, "/api/user/search")
req.Method = requests.POST
return
}
func CreateSearchUserResponse() (response *SearchUserResponse) {
response = &SearchUserResponse{
BaseResponse: &responses.BaseResponse{},
}
return
}