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.
39 lines
559 B
39 lines
559 B
6 months ago
|
import request from '@/utils/request'
|
||
|
|
||
|
export function findAll() {
|
||
|
return request({
|
||
|
url: '/depts',
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function add(dept) {
|
||
|
return request({
|
||
|
url: '/depts',
|
||
|
method: 'post',
|
||
|
data: dept
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function update(dept) {
|
||
|
return request({
|
||
|
url: '/depts',
|
||
|
method: 'put',
|
||
|
data: dept
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function deleteById(id) {
|
||
|
return request({
|
||
|
url: '/depts/' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function selectById(id) {
|
||
|
return request({
|
||
|
url: '/depts/' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|