- 美团外卖门店营业状态相关的几个函数
This commit is contained in:
@@ -61,6 +61,20 @@ func (a *API) PoiClose(poiCode string) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
func (a *API) PoiOpen(poiCode string) (err error) {
|
||||
_, err = a.AccessAPI("poi/open", false, map[string]interface{}{
|
||||
KeyAppPoiCode: poiCode,
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
func (a *API) PoiOffline(poiCode string) (err error) {
|
||||
_, err = a.AccessAPI("poi/offline", false, map[string]interface{}{
|
||||
KeyAppPoiCode: poiCode,
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
func (a *API) PoiOnline(poiCode string) (err error) {
|
||||
_, err = a.AccessAPI("poi/online", false, map[string]interface{}{
|
||||
KeyAppPoiCode: poiCode,
|
||||
@@ -95,12 +109,8 @@ func (a *API) PoiTagList(poiCode string) (catList []*PoiCategoryInfo, err error)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
func (a *API) PoiShipTimeUpdate(poiCode string, beginTime1, endTime1, beginTime2, endTime2 string) (err error) {
|
||||
shippingTime := beginTime1 + "-" + endTime1
|
||||
if beginTime2 != "" {
|
||||
shippingTime += "," + beginTime2 + "-" + endTime2
|
||||
}
|
||||
_, err = a.AccessAPI("poi/updatepromoteinfo", false, map[string]interface{}{
|
||||
func (a *API) PoiShipTimeUpdate(poiCode, shippingTime string) (err error) {
|
||||
_, err = a.AccessAPI("shippingtime/update", false, map[string]interface{}{
|
||||
KeyAppPoiCode: poiCode,
|
||||
"shipping_time": shippingTime,
|
||||
})
|
||||
|
||||
@@ -5,8 +5,8 @@ import "git.rosy.net.cn/baseapi/utils"
|
||||
const (
|
||||
PoiOpenLevelNormal = 1
|
||||
PoiOpenLevelHaveRest = 3
|
||||
PoiOnline = 1
|
||||
PoiOffline = 0
|
||||
PoiStatusOnline = 1
|
||||
PoiStatusOffline = 0
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user