first
This commit is contained in:
30
src/api/system-boot/dic.ts
Normal file
30
src/api/system-boot/dic.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
export const dicDelete = (id: string) => {
|
||||
let form = new FormData()
|
||||
form.append('id', id)
|
||||
return createAxios({
|
||||
url: '/system-boot/dic/delete',
|
||||
method: 'DELETE',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: form
|
||||
})
|
||||
}
|
||||
|
||||
export function dicAdd(data: any) {
|
||||
return createAxios({
|
||||
url: '/system-boot/dic/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function dicUpdate(data: any) {
|
||||
return createAxios({
|
||||
url: '/system-boot/dic/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user