- SkuDeleteByCustomIDs

This commit is contained in:
gazebo
2018-10-11 12:22:58 +08:00
parent 10b80441d9
commit 9f2f5a7dd3
2 changed files with 28 additions and 2 deletions

View File

@@ -156,6 +156,18 @@ func (a *API) SkuDelete(shopID, skuIDsStr string) (err error) {
return err
}
func (a *API) SkuDeleteByCustomIDs(shopID, customSkuIDsStr string) (err error) {
params := map[string]interface{}{
KeyShopID: shopID,
"custom_sku_id": customSkuIDsStr,
}
_, err = a.AccessAPI("sku.delete", params)
if err == nil {
return nil
}
return err
}
func (a *API) SkuOnline(shopID, skuIDsStr string) (err error) {
params := map[string]interface{}{
KeyShopID: shopID,