open-im-server icon indicating copy to clipboard operation
open-im-server copied to clipboard

[FEATURE REQUEST] Interface '/msg/search_msg' It is recommended to add sorting parameters to support it

Open zyyc5 opened this issue 9 months ago • 2 comments

Why this feature?

我的业务需要实现服务端拉取某个群组下所有消息, 当前的这个接口只能顺序获取, 我希望可以按时间倒序获取列表

Suggested Solution

这个接口支持排序字段, 或者新增一个按会话查询, 并且支持排序的接口

Additional Information

No response

zyyc5 avatar Mar 11 '25 08:03 zyyc5

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Why this feature?

My business needs to implement the server to pull all messages in a certain group. The current interface can only be retrieved in sequence. I hope to get the list in reverse order in time.

Suggested Solution

This interface supports sorting fields, or adds a new interface that querys by session and supports sorting

Additional Information

No response

OpenIM-Robot avatar Mar 11 '25 08:03 OpenIM-Robot

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

OpenIM-Robot avatar Mar 11 '25 08:03 OpenIM-Robot