代码拉取完成,页面将自动刷新
package alipay_test
import (
"context"
"github.com/smartwalle/alipay/v3"
"testing"
)
func TestClient_SecurityRiskComplaintInfoBatchQuery(t *testing.T) {
t.Log("========== SecurityRiskComplaintInfoBatchQuery ==========")
payload := alipay.SecurityRiskComplaintInfoBatchQueryReq{}
payload.CurrentPageNum = 1
payload.PageSize = 20
payload.GmtComplaintStart = "2024-09-05 00:00:00"
payload.GmtComplaintEnd = "2024-09-06 00:00:00"
t.Log(payload)
result, err := client.SecurityRiskComplaintInfoBatchQuery(context.Background(), payload)
if err != nil {
t.Fatal(err)
}
if result.IsFailure() {
t.Fatal(result.Msg, result.SubMsg)
}
t.Logf("%v", result)
}
func TestClient_SecurityRiskComplaintInfoQuery(t *testing.T) {
t.Log("========== TestClient_SecurityRiskComplaintInfoQuery ==========")
payload := alipay.SecurityRiskComplaintInfoQueryReq{}
payload.ComplainId = 158237746
t.Log(payload)
result, err := client.SecurityRiskComplaintInfoQuery(context.Background(), payload)
if err != nil {
t.Fatal(err)
}
if result.IsFailure() {
t.Fatal(result.Msg, result.SubMsg)
}
t.Logf("%v", result)
}
func TestClient_SecurityRiskComplaintProcessFinish(t *testing.T) {
t.Log("========== TestClient_SecurityRiskComplaintProcessFinish ==========")
payload := alipay.SecurityRiskComplaintProcessFinishReq{}
payload.IdList = []int64{158237746}
payload.ProcessCode = "REFUND"
payload.Remark = "公司内部测试用户"
t.Log(payload)
result, err := client.SecurityRiskComplaintProcessFinish(context.Background(), payload)
if err != nil {
t.Fatal(err)
}
if result.IsFailure() {
t.Fatal(result.Msg, result.SubMsg)
}
t.Logf("%v", result)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。