Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
21
business/partner/purchase/mtwm/im.go
Normal file
21
business/partner/purchase/mtwm/im.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package mtwm
|
||||
|
||||
import "git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
||||
|
||||
// GetPoiIMStatus 查询门店IM单聊开关状态
|
||||
func GetPoiIMStatus(appPoiCode, vendorOrgCode string) (retVal mtwmapi.GetPoiIMStatusResp, err error) {
|
||||
retVal, err = getAPI(vendorOrgCode, 0, appPoiCode).GetPoiIMStatus(appPoiCode)
|
||||
return retVal, err
|
||||
}
|
||||
|
||||
// SetPoiIMStatus 设置门店IM线上状态 0-关闭 1-开启
|
||||
func SetPoiIMStatus(appPoiCode, vendorOrgCode string, imStatus int) error {
|
||||
err := getAPI(vendorOrgCode, 0, appPoiCode).SetPoiIMStatus(appPoiCode, imStatus)
|
||||
return err
|
||||
}
|
||||
|
||||
// MsgSend 向用户发送消息
|
||||
func MsgSend(vendorOrgCode, msg string) error {
|
||||
_, err := getAPI(vendorOrgCode, 0, "").MsgSend(msg)
|
||||
return err
|
||||
}
|
||||
Reference in New Issue
Block a user