Compare commits
No commits in common. "bc79297cea7b9c7d4d1a38f806bd7ef67ad1fdab" and "2994bc6a56e940f137610804e72e6707cda55892" have entirely different histories.
bc79297cea
...
2994bc6a56
@ -150,10 +150,3 @@ func (c *Client) SetSiteKey(req *SetSiteKeyReq) (resp *SetSiteKeyResp, err error
|
|||||||
err = c.DoAction(req, resp)
|
err = c.DoAction(req, resp)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// CallbackWeightUpdate 回调权重更新
|
|
||||||
func (c *Client) CallbackWeightUpdate(req *CallbackWeightUpdateReq) (resp *CallbackWeightUpdateResp, err error) {
|
|
||||||
resp = CreateCallbackWeightUpdateResp()
|
|
||||||
err = c.DoAction(req, resp)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|||||||
@ -336,17 +336,3 @@ func TestSetSiteKey(t *testing.T) {
|
|||||||
}
|
}
|
||||||
_ = resp
|
_ = resp
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCallbackWeightUpdate(t *testing.T) {
|
|
||||||
client, err := NewClient()
|
|
||||||
if err != nil {
|
|
||||||
t.Log(err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
resp, err := client.CallbackWeightUpdate(CreateCallbackWeightUpdateReq())
|
|
||||||
if err != nil {
|
|
||||||
t.Log(err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
t.Log(resp)
|
|
||||||
}
|
|
||||||
|
|||||||
@ -52,34 +52,3 @@ func CreateSetSiteKeyResp() *GetUserTotalPayResp {
|
|||||||
BaseResponse: &responses.BaseResponse{},
|
BaseResponse: &responses.BaseResponse{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// CallbackWeightUpdateReq 回调权重更新,用于刷新回调权重缓存
|
|
||||||
type CallbackWeightUpdateReq struct {
|
|
||||||
*requests.RpcRequest
|
|
||||||
}
|
|
||||||
|
|
||||||
// CreateCallbackWeightUpdateReq
|
|
||||||
// 创建回调权重更新请求
|
|
||||||
func CreateCallbackWeightUpdateReq() *CallbackWeightUpdateReq {
|
|
||||||
req := &CallbackWeightUpdateReq{
|
|
||||||
&requests.RpcRequest{},
|
|
||||||
}
|
|
||||||
req.InitWithApiInfo(HOST, VERSION, "api/site/callbackWeight")
|
|
||||||
req.Method = requests.POST
|
|
||||||
req.FormParams = make(map[string]string)
|
|
||||||
req.FormParams["act"] = "update"
|
|
||||||
|
|
||||||
return req
|
|
||||||
}
|
|
||||||
|
|
||||||
type CallbackWeightUpdateResp struct {
|
|
||||||
*responses.BaseResponse
|
|
||||||
Code int `json:"code"`
|
|
||||||
Msg string `json:"msg"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func CreateCallbackWeightUpdateResp() *CallbackWeightUpdateResp {
|
|
||||||
return &CallbackWeightUpdateResp{
|
|
||||||
BaseResponse: &responses.BaseResponse{},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user