This commit is contained in:
suyl
2021-05-10 11:17:15 +08:00
parent 2ae4b513dd
commit ed0f22289b
2 changed files with 108 additions and 7 deletions

View File

@@ -12,3 +12,32 @@ func TestOptimusMaterial(t *testing.T) {
}
t.Log(utils.Format4Output(result, false))
}
func TestMaterialOptional(t *testing.T) {
result, err := api.MaterialOptional(&MaterialOptionalParam{
AdzoneID: 111339100149,
PageNo: 1,
PageSize: 10,
Cat: "",
})
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestItemConvert(t *testing.T) {
result, err := api.ItemConvert(42319524271)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestItemcatsGet(t *testing.T) {
result, err := api.ItemcatsGet(0)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}