This commit is contained in:
邹宗楠
2023-08-19 10:49:54 +08:00
parent 8e23122584
commit 3024f1ba5e
3 changed files with 19 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
package mtwmapi
import (
"git.rosy.net.cn/jx-callback/globals"
"time"
"git.rosy.net.cn/baseapi/utils"
@@ -145,3 +146,14 @@ func (a *API) FoodSkuSellStatus(poiCode string, foodData []map[string]interface{
})
return err
}
// GetSkuPurchasePrice 获取商品进货价
func (a *API) GetSkuPurchasePrice(poiCode, skuId string) {
data, err := a.AccessAPI("retail/purchase/price/list", true, map[string]interface{}{
KeyAppPoiCode: poiCode,
"sku_id": skuId,
"page_size": 20,
})
globals.SugarLogger.Debugf("data :== %s", utils.Format4Output(data, false))
globals.SugarLogger.Debugf("err :== %s", utils.Format4Output(err, false))
}