Compare commits
No commits in common. "0fbd6d25b9eee647cd904ceee700627389be7ad7" and "b3cb834ff2ef2f2e7396e8de38218f5b7b2bb3b9" have entirely different histories.
0fbd6d25b9
...
b3cb834ff2
@ -74,13 +74,3 @@ func (c *Client) GetUserTotalPay(req *GetUserTotalPayReq) (resp *GetUserTotalPay
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetGameServerCountData 获取区服统计数据
|
|
||||||
func (c *Client) GetGameServerCountData(req *GetGameServerCountDataReq) (resp *GetGameServerCountDataResp, err error) {
|
|
||||||
resp = CreateGetGameServerCountDataResp()
|
|
||||||
err = c.DoAction(req, resp)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|||||||
@ -117,20 +117,3 @@ func TestGetUserTotalPay(t *testing.T) {
|
|||||||
}
|
}
|
||||||
fmt.Println(resp.Code, resp.Msg, resp.Data)
|
fmt.Println(resp.Code, resp.Msg, resp.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGetGameServerCountData(t *testing.T) {
|
|
||||||
client, err := NewClient()
|
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
req := CreateGetGameServerCountData(
|
|
||||||
"2024-07-30,2024-07-23",
|
|
||||||
"1111,1234",
|
|
||||||
)
|
|
||||||
resp, err := client.GetGameServerCountData(req)
|
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
fmt.Println(resp.Code, resp.Msg, resp.Data)
|
|
||||||
}
|
|
||||||
|
|||||||
@ -17,25 +17,6 @@ type SyncGameServerListResp struct {
|
|||||||
Count int `json:"count"`
|
Count int `json:"count"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetGameServerCountDataReq struct {
|
|
||||||
*requests.RpcRequest
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetGameServerCountDataResp struct {
|
|
||||||
*responses.BaseResponse
|
|
||||||
Code int `json:"code"`
|
|
||||||
Msg string `json:"msg"`
|
|
||||||
Data []GetGameServerCountData `json:"data"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetGameServerCountData struct {
|
|
||||||
GameSign string `json:"game_sign"`
|
|
||||||
ServerId int64 `json:"server_id"`
|
|
||||||
RoleNum int64 `json:"role_num"`
|
|
||||||
TotalPayAmount float64 `json:"total_pay_amount"`
|
|
||||||
TotalPayRoleNum int64 `json:"total_pay_role_num"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CreateSyncGameServerListReq 创建同步开服数据请求
|
// CreateSyncGameServerListReq 创建同步开服数据请求
|
||||||
// opt: 更新 insertOrUpdate, 删除 del
|
// opt: 更新 insertOrUpdate, 删除 del
|
||||||
//
|
//
|
||||||
@ -79,23 +60,3 @@ func CreateSyncGameServerListResp() *SyncGameServerListResp {
|
|||||||
BaseResponse: &responses.BaseResponse{},
|
BaseResponse: &responses.BaseResponse{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateGetGameServerCountData(roleDates string, serverIds string) *GetGameServerCountDataReq {
|
|
||||||
req := &GetGameServerCountDataReq{
|
|
||||||
&requests.RpcRequest{},
|
|
||||||
}
|
|
||||||
|
|
||||||
req.InitWithApiInfo(HOST, VERSION, "/game/getGameServerCountData")
|
|
||||||
req.Method = requests.POST
|
|
||||||
req.FormParams = make(map[string]string)
|
|
||||||
req.FormParams["role_dates"] = roleDates
|
|
||||||
req.FormParams["server_ids"] = serverIds
|
|
||||||
|
|
||||||
return req
|
|
||||||
}
|
|
||||||
|
|
||||||
func CreateGetGameServerCountDataResp() *GetGameServerCountDataResp {
|
|
||||||
return &GetGameServerCountDataResp{
|
|
||||||
BaseResponse: &responses.BaseResponse{},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user