|
|
|
@ -39,6 +39,11 @@ public class SessionController {
|
|
|
|
|
|
|
|
|
|
@ApiOperation("分页获取会话列表")
|
|
|
|
|
@GetMapping("querySessionPage")
|
|
|
|
|
@ApiImplicitParams({
|
|
|
|
|
@ApiImplicitParam(name = "sessionName", value = "模糊搜索", required = true, dataType = "String", paramType = "query"),
|
|
|
|
|
@ApiImplicitParam(name = "pageSize", value = "pageSize", required = true, dataType = "Integer", paramType = "query"),
|
|
|
|
|
@ApiImplicitParam(name = "pageNum", value = "pageNum", required = true, dataType = "Integer", paramType = "query")
|
|
|
|
|
})
|
|
|
|
|
public IPage<IrSession> querySessionPage(String sessionName, Integer pageSize, Integer pageNum) {
|
|
|
|
|
return irSessionService.querySessionPage(sessionName, pageSize, pageNum);
|
|
|
|
|
}
|
|
|
|
@ -49,13 +54,13 @@ public class SessionController {
|
|
|
|
|
irSessionService.finishSession(finishSessionVO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("查询所有会话列表")
|
|
|
|
|
@ApiOperation("查询会话历史记录列表")
|
|
|
|
|
@GetMapping("querySessionHistory")
|
|
|
|
|
public List<IrSessionHistory> querySessionHistory(@NotBlank(message = "会话ID不能为空") String sessionId) {
|
|
|
|
|
return irSessionService.querySessionHistory(sessionId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("删除会话")
|
|
|
|
|
@ApiOperation("删除会话记录")
|
|
|
|
|
@DeleteMapping("deleteSession")
|
|
|
|
|
public void deleteSession(@NotBlank(message = "会话ID不能为空") String sessionId) {
|
|
|
|
|
irSessionService.deleteSession(sessionId);
|
|
|
|
|