deat: Wallpaper api
This commit is contained in:
@@ -2,7 +2,7 @@ import request from '@/utils/request'
|
|||||||
|
|
||||||
export function getList(data) {
|
export function getList(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/management/api/spring/wallpaper/type/list',
|
url: '/management/api/spring/wallpaper/category/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: data,
|
params: data,
|
||||||
})
|
})
|
||||||
@@ -10,14 +10,14 @@ export function getList(data) {
|
|||||||
|
|
||||||
export function getAllList() {
|
export function getAllList() {
|
||||||
return request({
|
return request({
|
||||||
url: '/management/api/spring/wallpaper/type/list/all',
|
url: '/management/api/spring/wallpaper/category/list/all',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function doAdd(data) {
|
export function doAdd(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/management/api/spring/wallpaper/type',
|
url: '/management/api/spring/wallpaper/category',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
@@ -25,7 +25,7 @@ export function doAdd(data) {
|
|||||||
|
|
||||||
export function doEdit(id, data) {
|
export function doEdit(id, data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/management/api/spring/wallpaper/type/${id}`,
|
url: `/management/api/spring/wallpaper/category/${id}`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
@@ -33,7 +33,7 @@ export function doEdit(id, data) {
|
|||||||
|
|
||||||
export function doDelete(data) {
|
export function doDelete(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/management/api/spring/wallpaper/type/delete',
|
url: '/management/api/spring/wallpaper/category/delete',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
@@ -41,21 +41,21 @@ export function doDelete(data) {
|
|||||||
|
|
||||||
export function doMoveUp(id) {
|
export function doMoveUp(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/management/api/spring/wallpaper/type/moveUp/${id}`,
|
url: `/management/api/spring/wallpaper/category/moveUp/${id}`,
|
||||||
method: 'patch',
|
method: 'patch',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function doMoveDown(id) {
|
export function doMoveDown(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/management/api/spring/wallpaper/type/moveDown/${id}`,
|
url: `/management/api/spring/wallpaper/category/moveDown/${id}`,
|
||||||
method: 'patch',
|
method: 'patch',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function toggleEnable(id, isEnabled) {
|
export function toggleEnable(id, isEnabled) {
|
||||||
return request({
|
return request({
|
||||||
url: `/management/api/spring/wallpaper/type/enable/${id}`,
|
url: `/management/api/spring/wallpaper/category/enable/${id}`,
|
||||||
method: 'patch',
|
method: 'patch',
|
||||||
data: { isEnabled },
|
data: { isEnabled },
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user