银豹变更商品状态

This commit is contained in:
苏尹岚
2020-07-01 17:26:28 +08:00
parent 1957696d84
commit b853dbb954
3 changed files with 25 additions and 2 deletions

View File

@@ -539,3 +539,18 @@ func (a *API) TryGetCookie() (cookie string, err error) {
})
return cookie, err
}
//银豹改变商品状态?
//https://beta27.pospal.cn/Product/BatchUpdateProductEnable
func (a *API) BatchUpdateProductEnable(userID, productId string, enable int) (err error) {
_, err = a.AccessStorePage("Product/BatchUpdateProductEnable", map[string]interface{}{
"enable": enable,
"productRange[userId]": userID,
"productRange[enable]": enable,
"productRange[isProductRequestedStore]": false,
"productRange[isAddvancedSearch]": false,
"productRange[isUpdateAllProduct]": false,
"productRange[productUidsJson]": []string{productId},
})
return err
}