This commit is contained in:
van
2026-03-09 15:25:19 +08:00
parent bf092e5f69
commit 4fba24438c
2 changed files with 107 additions and 10 deletions

View File

@@ -19,11 +19,21 @@ export function executeInstructionWithForce(data) {
})
}
export function getHistory(type, limit) {
/**
* 获取历史消息记录
* @param type request | response
* @param limit 条数上限
* @param keyword 可选,搜索关键词;传则后端在全部数据中过滤后返回
*/
export function getHistory(type, limit, keyword) {
const params = { type, limit }
if (keyword != null && String(keyword).trim() !== '') {
params.keyword = String(keyword).trim()
}
return request({
url: '/jarvis/instruction/history',
method: 'get',
params: { type, limit }
params
})
}