56 lines
1.1 KiB
Vue
56 lines
1.1 KiB
Vue
import request from '@/utils/request'
|
|
|
|
export function getList(data) {
|
|
return request({
|
|
url: '/management/api/spring/blessing/template/list',
|
|
method: 'get',
|
|
params: data,
|
|
})
|
|
}
|
|
|
|
export function doAdd(data) {
|
|
return request({
|
|
url: '/management/api/spring/blessing/template',
|
|
method: 'post',
|
|
data,
|
|
})
|
|
}
|
|
|
|
export function doEdit(id, data) {
|
|
return request({
|
|
url: `/management/api/spring/blessing/template/${id}`,
|
|
method: 'put',
|
|
data,
|
|
})
|
|
}
|
|
|
|
export function doDelete(data) {
|
|
return request({
|
|
url: '/management/api/spring/blessing/template/delete',
|
|
method: 'put',
|
|
data,
|
|
})
|
|
}
|
|
|
|
export function doMoveUp(id) {
|
|
return request({
|
|
url: `/management/api/spring/blessing/template/moveUp/${id}`,
|
|
method: 'patch',
|
|
})
|
|
}
|
|
|
|
export function doMoveDown(id) {
|
|
return request({
|
|
url: `/management/api/spring/blessing/template/moveDown/${id}`,
|
|
method: 'patch',
|
|
})
|
|
}
|
|
|
|
export function toggleEnable(id, isEnabled) {
|
|
return request({
|
|
url: `/management/api/spring/blessing/template/enable/${id}`,
|
|
method: 'patch',
|
|
data: { isEnabled },
|
|
})
|
|
}
|