修改接口参数

This commit is contained in:
张元坤 2025-07-10 09:35:04 +08:00
parent 626af60456
commit f6258c970b

View File

@ -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}
}) })
} }