7
0

添加搜索用户

This commit is contained in:
liaokaishan 2020-08-10 12:09:23 +08:00
parent f038071d28
commit d985a60308

View File

@ -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
}