添加搜索用户
This commit is contained in:
parent
f038071d28
commit
d985a60308
35
services/sso/search_user.go
Normal file
35
services/sso/search_user.go
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user