43 lines
1.0 KiB
Go
43 lines
1.0 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 GetTotalRequest struct {
|
|
*requests.RpcRequest
|
|
UserName string `position:"Body" field:"user_name" default:"" `
|
|
Appid int64 `position:"Body" field:"appid"`
|
|
}
|
|
|
|
type GetTotalResponse struct {
|
|
*responses.BaseResponse
|
|
Code int `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Data struct {
|
|
UserName string `json:"user_name"`
|
|
TotalPaid float64 `json:"total_paid"`
|
|
TotalTimes int64 `json:"total_times"`
|
|
MaxPaid float64 `json:"max_paid"`
|
|
} `json:"data"`
|
|
}
|
|
|
|
func CreateGetTotalRequest(userName string, appid int64) (req *GetTotalRequest) {
|
|
req = &GetTotalRequest{
|
|
RpcRequest: &requests.RpcRequest{},
|
|
UserName: userName,
|
|
Appid: appid,
|
|
}
|
|
req.InitWithApiInfo(HOST, VERSION, "/api/user/getTotal")
|
|
req.Method = requests.POST
|
|
return
|
|
}
|
|
|
|
func CreateGetTotalResponse() (response *GetTotalResponse) {
|
|
response = &GetTotalResponse{
|
|
BaseResponse: &responses.BaseResponse{},
|
|
}
|
|
return
|
|
}
|