处理接口数据

finance
杨赟 2 years ago
parent 57901d8bf9
commit 1dd52f51b5

@ -63,39 +63,3 @@ func (c *category) Select(ctx context.Context) (reply []CategoryItem, err error)
err = xClient.Call(ctx, "Select", args, &reply) err = xClient.Call(ctx, "Select", args, &reply)
return return
} }
type ArgsCategoryImport struct {
First string
Second string
Third string
SupplyCategoryId uint
}
// Import @Title 导入
func (c *category) Import(ctx context.Context, args []ArgsCategoryImport) (err error) {
reply := 0
xClient, err := client.GetClient(c)
if err != nil {
return
}
err = xClient.Call(ctx, "Import", args, &reply)
return
}
type ArgsCategoryExport struct {
First string
Second string
Third string
SupplyCategoryId uint
}
// Export @Title 导出
func (c *category) Export(ctx context.Context) (reply []ArgsCategoryExport, err error) {
args := 0
xClient, err := client.GetClient(c)
if err != nil {
return
}
err = xClient.Call(ctx, "Export", args, &reply)
return
}

@ -57,7 +57,6 @@ type ArgsSkuAdd struct {
Content string // 商品详情 Content string // 商品详情
Imgs []SkuImg // 商品图片 第一张主图 Imgs []SkuImg // 商品图片 第一张主图
Specifications []SkuSpecification // 商品参数信息 Specifications []SkuSpecification // 商品参数信息
ImgUrl string // 商品主图
} }
type SkuImg struct { type SkuImg struct {

Loading…
Cancel
Save