2024-02-19 13:44:32 +08:00
|
|
|
import createAxios from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
// 菜单修改
|
|
|
|
|
export function updateMenu(params: anyObj) {
|
|
|
|
|
return createAxios({
|
|
|
|
|
url: '/user-boot/function/update',
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
data: params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function addMenu(params: anyObj) {
|
|
|
|
|
return createAxios({
|
|
|
|
|
url: '/user-boot/function/add',
|
|
|
|
|
method: 'POST',
|
|
|
|
|
data: params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function delMenu(id: string) {
|
|
|
|
|
return createAxios({
|
|
|
|
|
url: '/user-boot/function/delete?id=' + id,
|
|
|
|
|
method: 'delete'
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-02-29 11:13:07 +08:00
|
|
|
export function getTheme() {
|
|
|
|
|
return createAxios({
|
|
|
|
|
url: '/system-boot/theme/getTheme',
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-01-02 15:51:14 +08:00
|
|
|
export function addVersion(data:any) {
|
|
|
|
|
return createAxios({
|
2025-07-31 15:55:33 +08:00
|
|
|
url: '/system-boot/appVersion/add',
|
2025-01-02 15:51:14 +08:00
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
export function getLastData(data:any) {
|
|
|
|
|
return createAxios({
|
2025-07-31 15:55:33 +08:00
|
|
|
url: '/system-boot/appVersion/getLastData',
|
2025-01-02 15:51:14 +08:00
|
|
|
method: 'post',
|
|
|
|
|
params:data
|
|
|
|
|
})
|
|
|
|
|
}
|