45 lines
753 B
JavaScript
45 lines
753 B
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询等级设置列表
|
||
|
export function listGrade(query) {
|
||
|
return request({
|
||
|
url: '/system/grade/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询等级设置详细
|
||
|
export function getGrade(id) {
|
||
|
return request({
|
||
|
url: '/system/grade/' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增等级设置
|
||
|
export function addGrade(data) {
|
||
|
return request({
|
||
|
url: '/system/grade',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改等级设置
|
||
|
export function updateGrade(data) {
|
||
|
return request({
|
||
|
url: '/system/grade',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除等级设置
|
||
|
export function delGrade(id) {
|
||
|
return request({
|
||
|
url: '/system/grade/' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|