|
@@ -616,7 +616,7 @@ public class DifyService {
|
|
/**
|
|
/**
|
|
* 获取会话列表
|
|
* 获取会话列表
|
|
*/
|
|
*/
|
|
- public ConversationListResponse conversations(long difyTypeId) {
|
|
|
|
|
|
+ public ConversationListResponse conversations(long difyTypeId, String lastId, int limit) {
|
|
|
|
|
|
DifyType difyType = difyTypeDao.get(difyTypeId);
|
|
DifyType difyType = difyTypeDao.get(difyTypeId);
|
|
|
|
|
|
@@ -626,7 +626,7 @@ public class DifyService {
|
|
DifyChatClient chatClient = DifyClientFactory.createChatClient("http://203.110.233.149:9000/v1", difyType.getApiKey());
|
|
DifyChatClient chatClient = DifyClientFactory.createChatClient("http://203.110.233.149:9000/v1", difyType.getApiKey());
|
|
// 获取会话列表
|
|
// 获取会话列表
|
|
try {
|
|
try {
|
|
- ConversationListResponse conversations = chatClient.getConversations(userContext.getUserName() + "-" + userContext.getUserId(), null, 10, "-updated_at");
|
|
|
|
|
|
+ ConversationListResponse conversations = chatClient.getConversations(userContext.getUserName() + "-" + userContext.getUserId(), lastId, limit, "-updated_at");
|
|
return conversations;
|
|
return conversations;
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|