fix: recommend
This commit is contained in:
55
src/api/spring/index/index.js
Normal file
55
src/api/spring/index/index.js
Normal file
@@ -0,0 +1,55 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getList(data) {
|
||||
return request({
|
||||
url: '/management/api/spring/index/recommend/list',
|
||||
method: 'get',
|
||||
params: data,
|
||||
})
|
||||
}
|
||||
|
||||
export function doAdd(data) {
|
||||
return request({
|
||||
url: '/management/api/spring/index/recommend',
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
export function doDelete(data) {
|
||||
return request({
|
||||
url: '/management/api/spring/index/recommend/delete',
|
||||
method: 'put',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
export function doMoveUp(id) {
|
||||
return request({
|
||||
url: `/management/api/spring/index/recommend/moveUp/${id}`,
|
||||
method: 'patch',
|
||||
})
|
||||
}
|
||||
|
||||
export function doMoveDown(id) {
|
||||
return request({
|
||||
url: `/management/api/spring/index/recommend/moveDown/${id}`,
|
||||
method: 'patch',
|
||||
})
|
||||
}
|
||||
|
||||
export function toggleEnable(id, isEnabled) {
|
||||
return request({
|
||||
url: `/management/api/spring/index/recommend/enable/${id}`,
|
||||
method: 'patch',
|
||||
data: { isEnabled },
|
||||
})
|
||||
}
|
||||
|
||||
export function getItemDetail(data) {
|
||||
return request({
|
||||
url: '/management/api/spring/index/recommend/check',
|
||||
method: 'get',
|
||||
params: data,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user