1
This commit is contained in:
@@ -34,15 +34,17 @@ public class InstructionController extends BaseController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取历史消息记录
|
||||
* 获取历史消息记录(支持关键词搜索,在全部历史数据中匹配)
|
||||
* @param type 消息类型:request(请求) 或 response(响应)
|
||||
* @param limit 获取数量,默认100条
|
||||
* @param limit 获取数量,默认100条;有 keyword 时为返回匹配条数上限,默认200
|
||||
* @param keyword 可选,搜索关键词;不为空时在全部数据中过滤后返回
|
||||
* @return 历史消息列表
|
||||
*/
|
||||
@GetMapping("/history")
|
||||
public AjaxResult getHistory(@RequestParam(required = false, defaultValue = "request") String type,
|
||||
@RequestParam(required = false, defaultValue = "100") Integer limit) {
|
||||
java.util.List<String> history = instructionService.getHistory(type, limit);
|
||||
@RequestParam(required = false, defaultValue = "100") Integer limit,
|
||||
@RequestParam(required = false) String keyword) {
|
||||
java.util.List<String> history = instructionService.getHistory(type, limit, keyword);
|
||||
return AjaxResult.success(history);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user