refactor: remove local history caching and add API suggestions

Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
dxc
2026-02-10 14:38:15 +08:00
parent 94ff7cecdc
commit 8cae6ee7f6
7 changed files with 122 additions and 117 deletions

View File

@ -60,4 +60,22 @@ export function deleteFile(filename: string) {
url: `/common/files/${filename}`, // 对应后端 /api/v1/common/files/<filename>
method: 'delete'
})
}
}
// 8. 供应商建议
export function getSupplierSuggestions(params: any) {
return request({
url: '/inbound/buy/suggestions/suppliers',
method: 'get',
params
})
}
// 9. 用户建议
export function getUserSuggestions(params: any) {
return request({
url: '/inbound/buy/suggestions/users',
method: 'get',
params
})
}