diff --git a/services/sso/search_user.go b/services/sso/search_user.go new file mode 100644 index 0000000..fdb04b9 --- /dev/null +++ b/services/sso/search_user.go @@ -0,0 +1,35 @@ +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 +}