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.
42 lines
655 B
42 lines
655 B
|
4 years ago
|
import request from '@/utils/request'
|
||
|
|
|
||
|
|
export function listgroup(data) {
|
||
|
|
return request({
|
||
|
|
url: '/api/admin/group/index',
|
||
|
|
method: 'get',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function get(id) {
|
||
|
|
return request({
|
||
|
|
url: '/api/admin/group/show',
|
||
|
|
method: 'post',
|
||
|
|
params: { id }
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function save(data) {
|
||
|
|
return request({
|
||
|
|
url: '/api/admin/group/save',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function store(data) {
|
||
|
|
return request({
|
||
|
|
url: '/api/admin/group/store',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function del(id) {
|
||
|
|
return request({
|
||
|
|
url: '/api/admin/group/destroy',
|
||
|
|
method: 'get',
|
||
|
|
params:{ id }
|
||
|
|
})
|
||
|
|
}
|