You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
554 B
19 lines
554 B
import request from "@/config/request"
|
|
|
|
export const baseUrl = `/system/department`
|
|
|
|
export function getDepartments(all = true) {
|
|
return request.get(`${baseUrl}/get?all=${all}`).then(({data}) => data.data)
|
|
}
|
|
|
|
export function addDepartment(data) {
|
|
return request.post(`${baseUrl}/add`, data).then(({data}) => data)
|
|
}
|
|
|
|
export function updateDepartment(data) {
|
|
return request.post(`${baseUrl}/update`, data).then(({data}) => data)
|
|
}
|
|
|
|
export function delDepartment(data) {
|
|
return request.post(`${baseUrl}/del`, data).then(({data}) => data)
|
|
}
|
|
|