mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
前端功能完善
This commit is contained in:
53
vue/src/api/system/group.js
Normal file
53
vue/src/api/system/group.js
Normal file
@@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询分组列表
|
||||
export function listGroup(query) {
|
||||
return request({
|
||||
url: '/system/group/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询分组详细
|
||||
export function getGroup(groupId) {
|
||||
return request({
|
||||
url: '/system/group/' + groupId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增分组
|
||||
export function addGroup(data) {
|
||||
return request({
|
||||
url: '/system/group',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改分组
|
||||
export function updateGroup(data) {
|
||||
return request({
|
||||
url: '/system/group',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除分组
|
||||
export function delGroup(groupId) {
|
||||
return request({
|
||||
url: '/system/group/' + groupId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出分组
|
||||
export function exportGroup(query) {
|
||||
return request({
|
||||
url: '/system/group/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user