|
|
|
@ -143,6 +143,25 @@ func (s *sku) Prices(ctx context.Context, channelId string, args ArgsSkuPrices)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ArgsSkuGroups struct {
|
|
|
|
|
SkuIds []uint // sku数组
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SkuGroup struct {
|
|
|
|
|
SkuId uint `json:"skuId"`
|
|
|
|
|
GroupSkuIds []uint `json:"groupSkuIds"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Groups @Title 获取sku分组信息
|
|
|
|
|
func (s *sku) Groups(ctx context.Context, channelId string, args ArgsSkuGroups) (reply []SkuGroup, err error) {
|
|
|
|
|
xClient, err := client.GetClient(s)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Groups", args, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ArgsSkuStock struct {
|
|
|
|
|
Address string // 地址
|
|
|
|
|
Skus []SkuStockItem // sku信息
|
|
|
|
|