This commit is contained in:
van
2026-03-09 15:25:22 +08:00
parent dc8b0b2fcf
commit b4749f3516
3 changed files with 36 additions and 9 deletions

View File

@@ -35,6 +35,15 @@ public interface IInstructionService {
* @return 历史消息列表
*/
java.util.List<String> getHistory(String type, Integer limit);
/**
* 获取历史消息记录(支持关键词搜索,在全部数据中匹配)
* @param type 消息类型request(请求) 或 response(响应)
* @param limit 返回数量上限默认200条
* @param keyword 搜索关键词,为空则按 limit 取最近 N 条
* @return 历史消息列表
*/
java.util.List<String> getHistory(String type, Integer limit, String keyword);
}