修改接口参数
This commit is contained in:
+2
-2
@@ -44,9 +44,9 @@ export const fetchConversations = async (limit = 100, last_id = null) => {
|
|||||||
return get('conversations', { params: { limit, last_id } })
|
return get('conversations', { params: { limit, last_id } })
|
||||||
}
|
}
|
||||||
|
|
||||||
export const fetchChatList = async (conversationId: string, limit = 20, last_id = null) => {
|
export const fetchChatList = async (conversationId: string, limit = 20) => {
|
||||||
return get('messages', {
|
return get('messages', {
|
||||||
params: { conversation_id: conversationId, limit, last_id }
|
params: { conversation_id: conversationId, limit}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user