Files
fastbee/vue/src/api/system/group.js
2021-07-01 13:16:54 +08:00

63 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/******************************************************************************
* 作者kerwincui
* 时间2021-06-08
* 邮箱164770707@qq.com
* 源码地址https://gitee.com/kerwincui/wumei-smart
* author: kerwincui
* create: 2021-06-08
* email164770707@qq.com
* source:https://github.com/kerwincui/wumei-smart
******************************************************************************/
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
})
}