1
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package mtwmapi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"net/url"
|
||||
)
|
||||
@@ -88,6 +89,20 @@ func (a *API) GetPoiIMStatus(appPoiCode string) (retVal GetPoiIMStatusResp, err
|
||||
return retVal, err
|
||||
}
|
||||
|
||||
// QueryHistory 查询历史消息
|
||||
func (a *API) QueryHistory(start, end int64) {
|
||||
resp, err := a.AccessAPI("ecommerce/IM/historyMsg/list", false, map[string]interface{}{
|
||||
"type": 1,
|
||||
"start_time": start,
|
||||
"end_time": end,
|
||||
"page_num": 1,
|
||||
"page_size": 20,
|
||||
})
|
||||
fmt.Println(resp)
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
|
||||
// MsgRead 设置消息已读 https://open-shangou.meituan.com/home/docDetail/465
|
||||
//func (a *API) MsgRead(appPoiCode string, msgID, openUserID int) error {
|
||||
// _, err := a.AccessAPI("/wm/IM/msgRead", false, map[string]interface{}{
|
||||
|
||||
Reference in New Issue
Block a user