qx
qx
19 小时以前 495bf3ca62536c52cf78895501205965cae05828
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import request from '@/utils/request'
 
// 查询搜索历史列表
export function listHistory(query) {
    return request({
        url: '/mall/history/list',
        method: 'get',
        params: query
    })
}
 
// 查询搜索历史详细
export function getHistory(id) {
    return request({
        url: '/mall/history/' + id,
        method: 'get'
    })
}
 
// 新增搜索历史
export function addHistory(data) {
    return request({
        url: '/mall/history',
        method: 'post',
        data: data
    })
}
 
// 修改搜索历史
export function updateHistory(data) {
    return request({
        url: '/mall/history',
        method: 'put',
        data: data
    })
}
 
// 删除搜索历史
export function delHistory(id) {
    return request({
        url: '/mall/history/' + id,
        method: 'delete'
    })
}