7
0
gaore-common-sdk-go/services/pay/get_user_pay.go

40 lines
991 B
Go

package pay
import (
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
)
type GetUserPayRequest struct {
*requests.RpcRequest
Uids string `position:"Body" field:"uids"`
Type int64 `position:"Body" field:"type"`
GameIds string `position:"Body" field:"game_ids" `
}
type GetUserPayResponse struct {
*responses.BaseResponse
Code int `json:"code"`
Msg string `json:"msg"`
Data map[int64]float64 `json:"data"`
}
func CreateGetUserPayRequest(uids, gameIds string, t int64) (req *GetUserPayRequest) {
req = &GetUserPayRequest{
RpcRequest: &requests.RpcRequest{},
Uids: uids,
Type: t,
GameIds: gameIds,
}
req.InitWithApiInfo(HOST, VERSION, "/api/user/getUserPay")
req.Method = requests.POST
return
}
func CreateGetUserPayResponse() (response *GetUserPayResponse) {
response = &GetUserPayResponse{
BaseResponse: &responses.BaseResponse{},
}
return
}