查询聊天记录

This commit is contained in:
苏尹岚
2020-08-20 11:01:57 +08:00
parent d8152daba6
commit 47eb93a24c
3 changed files with 50 additions and 0 deletions

View File

@@ -178,3 +178,17 @@ func handleMessages() {
}
}
}
// @Title 查询聊天记录
// @Description 查询聊天记录
// @Param token header string true "认证token"
// @Param vendorOrderID query string true "订单号"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetImMessageRecord [get]
func (c *EventController) GetImMessageRecord() {
c.callGetImMessageRecord(func(params *tEventGetImMessageRecordParams) (retVal interface{}, errCode string, err error) {
retVal, err = dao.GetImMessageRecord(dao.GetDB(), params.VendorOrderID, "", 0, -1)
return retVal, "", err
})
}