Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop

This commit is contained in:
邹宗楠
2023-09-26 11:18:59 +08:00
5 changed files with 52 additions and 48 deletions

View File

@@ -20,3 +20,15 @@ func (p *PurchaseHandler) OnImMessage(msg *ebaiapi.CallbackMsg) (response *ebaia
//return nil
return api.EbaiAPI.Err2CallbackResponse(msg.Cmd, err, nil)
}
// GetStoreIMStatus 查询门店IM开关状态
func GetStoreIMStatus(platformShopId string) (string, error) {
retVal, err := api.EbaiAPI.GetStoreIMStatus(platformShopId)
return retVal, err
}
// UpdateIMStatus 更新店铺IM开关状态 1-开启,-1-关闭
func UpdateIMStatus(platformShopId string, status int) error {
err := api.EbaiAPI.UpdateIMStatus(platformShopId, status)
return err
}