Files
admin-govern/src/api/system-boot/dic.ts

30 lines
679 B
TypeScript
Raw Normal View History

2024-01-15 16:15:24 +08:00
import createAxios from '@/utils/request'
2024-01-25 16:42:56 +08:00
export const dicDelete = (id: string) => {
2024-01-15 16:15:24 +08:00
let form = new FormData()
form.append('id', id)
return createAxios({
2024-08-09 15:16:20 +08:00
url: '/system-boot/dictTree//delete',
2024-01-15 16:15:24 +08:00
method: 'DELETE',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data: form
})
}
2024-01-25 16:42:56 +08:00
export function dicAdd(data: any) {
return createAxios({
2024-08-09 15:16:20 +08:00
url: '/system-boot/dictTree//add',
2024-01-25 16:42:56 +08:00
method: 'post',
data: data
})
}
export function dicUpdate(data: any) {
return createAxios({
2024-08-09 15:16:20 +08:00
url: '/system-boot/dictTree//update',
2024-01-25 16:42:56 +08:00
method: 'put',
data: data
})
}