Compare commits
No commits in common. "master" and "v1.2.50" have entirely different histories.
@ -150,10 +150,3 @@ func (c *Client) SetSiteKey(req *SetSiteKeyReq) (resp *SetSiteKeyResp, err error
|
||||
err = c.DoAction(req, resp)
|
||||
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
|
||||
}
|
||||
|
||||
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{},
|
||||
}
|
||||
}
|
||||
|
||||
// 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