46 lines
979 B
Go
46 lines
979 B
Go
package asdk
|
|
|
|
import (
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
|
|
"strconv"
|
|
)
|
|
|
|
type KickUserReq struct {
|
|
*requests.RpcRequest
|
|
}
|
|
|
|
type KickUserResp struct {
|
|
*responses.BaseResponse
|
|
Code int `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Data struct{} `json:"data"`
|
|
TraceId string `json:"trace_id"`
|
|
}
|
|
type KickUserParam struct {
|
|
Ts int64 `json:"ts"`
|
|
Sign string `json:"sign"`
|
|
UserName string `json:"user_name"`
|
|
}
|
|
|
|
func CreateKickUserReq(data KickUserParam) *KickUserReq {
|
|
req := &KickUserReq{
|
|
&requests.RpcRequest{},
|
|
}
|
|
|
|
req.InitWithApiInfo(HOST, VERSION, "/api/kick")
|
|
req.Method = requests.GET
|
|
req.QueryParams = map[string]string{
|
|
"ts": strconv.FormatInt(data.Ts, 10),
|
|
"sign": data.Sign,
|
|
"user_name": data.UserName,
|
|
}
|
|
return req
|
|
}
|
|
|
|
func CreateKickUserResp() *KickUserResp {
|
|
return &KickUserResp{
|
|
BaseResponse: &responses.BaseResponse{},
|
|
}
|
|
}
|