接口处理

This commit is contained in:
JenniferW 2025-11-25 10:46:31 +08:00
parent f34bff1406
commit 101506ae82
2 changed files with 2440 additions and 0 deletions

40
src/api/order/index.js Normal file
View File

@ -0,0 +1,40 @@
import request from '@/utils/request'
// 查询 - 关键差异信息推荐
export function differenceWords(data) {
return request({
url: '/products/key/differences',
method: 'post',
data: data
})
}
// 查询 - 在所有字段中搜索相似内容,可模糊可精确
export function logout(data) {
return request({
url: '/products/search/fuzzy',
method: 'post',
data: data
})
}
// 智能搜索接口 - 根据输入内容获取对应的key和value
export function getInfo(query) {
return request({
url: '/products/search/smart',
method: 'get',
params: query
})
}
// 参数对比
export function compare(query) {
return request({
url: '/products/differences',
method: 'get',
params: query
})
}

File diff suppressed because it is too large Load Diff