京东商城api
This commit is contained in:
23
platformapi/jdshopapi/sku_test.go
Normal file
23
platformapi/jdshopapi/sku_test.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package jdshopapi
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
)
|
||||
|
||||
func TestFindShopCategories(t *testing.T) {
|
||||
result, err := api.FindShopCategories()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestDeleteShopCategory(t *testing.T) {
|
||||
result, err := api.DeleteShopCategory(14439186)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
Reference in New Issue
Block a user