53 lines
1.5 KiB
Go
53 lines
1.5 KiB
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 ManualReplenishParam struct {
|
|
GameId int64
|
|
Money float64
|
|
OrderId string
|
|
UserName string
|
|
PayChannel int64
|
|
PayChannelType int64
|
|
}
|
|
|
|
type ManualReplenishRequest struct {
|
|
*requests.RpcRequest
|
|
GameId int64 `position:"Body" field:"game_id"`
|
|
Money float64 `position:"Body" field:"money"`
|
|
OrderId string `position:"Body" field:"order_id"`
|
|
UserName string `position:"Body" field:"user_name"`
|
|
PayChannel int64 `position:"Body" field:"pay_channel"`
|
|
PayChannelType int64 `position:"Body" field:"pay_channel_type"`
|
|
}
|
|
|
|
type ManualReplenishResponse struct {
|
|
*responses.BaseResponse
|
|
State int `json:"state"`
|
|
Msg string `json:"msg"`
|
|
}
|
|
|
|
func CreateManualReplenishRequest(param ManualReplenishParam) *ManualReplenishRequest {
|
|
req := &ManualReplenishRequest{
|
|
RpcRequest: &requests.RpcRequest{},
|
|
GameId: param.GameId,
|
|
Money: param.Money,
|
|
OrderId: param.OrderId,
|
|
UserName: param.UserName,
|
|
PayChannel: param.PayChannel,
|
|
PayChannelType: param.PayChannelType,
|
|
}
|
|
req.InitWithApiInfo(HOST, VERSION, "/api/sdk/manualReplenish")
|
|
req.Method = requests.POST
|
|
return req
|
|
}
|
|
|
|
func CreateManualReplenishResponse() *ManualReplenishResponse {
|
|
return &ManualReplenishResponse{
|
|
BaseResponse: &responses.BaseResponse{},
|
|
}
|
|
}
|