1
This commit is contained in:
@@ -6,9 +6,12 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ImStatusOpen = 1 //开启
|
ImStatusOpen = 1 //单聊状态开启
|
||||||
ImStatusClose = 0 //关闭
|
ImStatusClose = 0 //关闭
|
||||||
|
|
||||||
|
OnlineStatusBusy = 1 //忙碌
|
||||||
|
OnlineStatusOnline = 0 //在线
|
||||||
|
|
||||||
MsgSourceStore = 1 //商家
|
MsgSourceStore = 1 //商家
|
||||||
MsgSourceUser = 2 //用户
|
MsgSourceUser = 2 //用户
|
||||||
MsgTypeText = 1 //文字
|
MsgTypeText = 1 //文字
|
||||||
@@ -59,7 +62,16 @@ func (a *API) MsgSend(pushContent string) (interface{}, error) {
|
|||||||
return retVal, err
|
return retVal, err
|
||||||
}
|
}
|
||||||
|
|
||||||
//设置门店IM线上状态
|
// SetPoiIMStatus 设置门店IM线上状态 0-关闭 1-开启
|
||||||
|
func (a *API) SetPoiIMStatus(appPoiCode string, imStatus int) error {
|
||||||
|
_, err := a.AccessAPI("wm/IM/setPoiIMStatus", false, map[string]interface{}{
|
||||||
|
"app_poi_code": appPoiCode,
|
||||||
|
"online_status": imStatus,
|
||||||
|
})
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetPoiIMOnlineStatus 设置门店IM线上状态 0-在线或1-忙碌
|
||||||
func (a *API) SetPoiIMOnlineStatus(appPoiCode string, onlineStatus int) error {
|
func (a *API) SetPoiIMOnlineStatus(appPoiCode string, onlineStatus int) error {
|
||||||
_, err := a.AccessAPI("wm/IM/setPoiIMOnlineStatus", false, map[string]interface{}{
|
_, err := a.AccessAPI("wm/IM/setPoiIMOnlineStatus", false, map[string]interface{}{
|
||||||
"app_poi_code": appPoiCode,
|
"app_poi_code": appPoiCode,
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user