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

View File

@ -39,4 +39,13 @@ export function searchMaterialBase(keyword: string) {
method: 'get',
params: { keyword }
})
}
}
// 用户建议
export function getUserSuggestions(params: any) {
return request({
url: '/inbound/product/suggestions/users',
method: 'get',
params
})
}

View File

@ -42,4 +42,13 @@ export function searchMaterialBase(keyword: string) {
method: 'get',
params: { keyword }
})
}
}
// 用户建议
export function getUserSuggestions(params: any) {
return request({
url: '/inbound/semi/suggestions/users',
method: 'get',
params
})
}

View File

@ -104,6 +104,24 @@ export function searchMaterialBase(keyword: string) {
})
}
// 供应商建议
export function getProviderSuggestions(params: any) {
return request({
url: '/v1/inbound/service/suggestions/providers',
method: 'get',
params
})
}
// 用户建议
export function getUserSuggestions(params: any) {
return request({
url: '/v1/inbound/service/suggestions/users',
method: 'get',
params
})
}
// 删除服务权益
export function deleteService(id: number) {
return request({