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:
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
@ -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({
|
||||
|
||||
Reference in New Issue
Block a user