添加国美api,删除老版本蜂鸟API,添加抖音授权api、

This commit is contained in:
邹宗楠
2022-05-13 16:03:37 +08:00
parent 56ef57fae5
commit ff5b116ce5
35 changed files with 2346 additions and 1191 deletions

View File

@@ -0,0 +1,42 @@
package gome_live_show
import (
"fmt"
"testing"
)
// 获取商品尺寸列表
func TestQueryGoodsList(t *testing.T) {
paramter := &QueryGoodsSpecSizeReq{
Cat3Code: "",
SpecName: "",
Page: Page{
PageNumber: PageNumber,
PageSize: PageSize,
},
}
data, err := api.QueryGoodsSizeList(paramter)
fmt.Println("err=", err)
fmt.Println("err=", data)
// fmt.Println("data", data.Records[0].Cat3Code)
}
// 获取尺寸详情
func TestQuerSpecListDetail(t *testing.T) {
api.QueryGoodsDetails("11111")
}
// 新增商品规格
func TestAddGoods(t *testing.T) {
data, err := api.CreateGoodsSpceList(&CreateSpecDetailParam{
SpecName: "测试分类",
SpecValues: []*SpecValueName{
{SpecValueName: "1111"},
{SpecValueName: "2222"},
},
Cat3Code: "100001",
Remark: "测试用力添加",
})
fmt.Println(data)
fmt.Println(err)
}