36 lines
814 B
Go
36 lines
814 B
Go
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:"" `
|
|
}
|
|
|
|
type SearchUserRequestData struct {
|
|
*requests.RpcRequest
|
|
User User `json:"user"`
|
|
}
|
|
|
|
type SearchUserResponse struct {
|
|
*responses.BaseResponse
|
|
Data CodeAuthResponseData `json:"data"`
|
|
}
|
|
|
|
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
|
|
}
|