|
@@ -172,11 +172,13 @@ public class DifyController {
|
|
|
|
|
|
@ApiOperation("获取会话列表")
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "difyTypeId", value = "dify类型id")
|
|
|
+ @ApiImplicitParam(name = "difyTypeId", value = "dify类型id"),
|
|
|
+ @ApiImplicitParam(name = "lastId", value = "当前页最后面一条记录的id"),
|
|
|
+ @ApiImplicitParam(name = "limit", value = "一次请求返回多少条记录")
|
|
|
})
|
|
|
- @RequestMapping(value = "/chat/conversations/{difyTypeId}", method = RequestMethod.GET)
|
|
|
- public Response chatConversations(@PathVariable long difyTypeId) {
|
|
|
- return Response.ok(difyService.conversations(difyTypeId));
|
|
|
+ @RequestMapping(value = "/chat/conversations/{difyTypeId}/{lastId}/{limit}", method = RequestMethod.GET)
|
|
|
+ public Response chatConversations(@PathVariable long difyTypeId, String lastId, @PathVariable int limit) {
|
|
|
+ return Response.ok(difyService.conversations(difyTypeId, lastId, limit));
|
|
|
}
|
|
|
|
|
|
@ApiOperation("删除会话")
|