This commit is contained in:
richboo111
2023-06-28 11:40:04 +08:00
parent 14fdcb1e1b
commit 127dfc89a3
6 changed files with 379 additions and 143 deletions

View File

@@ -7,7 +7,18 @@ import (
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156/request"
)
const (
StoreOnline = 1 //营业
StoreOnlineWord = "营业"
StoreOffline = -1 //不营业
StoreOfflineWord = "不营业"
)
var (
OnlineMap = map[string]int{
StoreOnlineWord: StoreOnline,
StoreOfflineWord: StoreOffline,
}
chanType = int64(DefaultChannelSourceType)
)
@@ -20,7 +31,7 @@ func (a *API) ShopUpdateStatus(storeID string, status int64) error {
ChannelSourceType: &chanType,
Status: &status,
},
}, "")
}, a.token)
if err != nil {
return err
}
@@ -51,7 +62,7 @@ func (a *API) ShopUpdateRange(storeID string, points []Points) error {
},
ChannelSourceType: &chanType,
},
}, "")
}, a.token)
if err != nil {
return err
}
@@ -72,7 +83,7 @@ func (a *API) ShopUpdateInfo(storeID, sTime, eTime string) error {
EndTime: &eTime,
ChannelSourceType: &chanType,
},
}, "")
}, a.token)
if err != nil {
return err
}