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.
108 lines
2.2 KiB
108 lines
2.2 KiB
import request from '@/utils/request'
|
|
import { parseStrEmpty } from "@/utils/ruoyi";
|
|
|
|
// 查询列配置列表
|
|
export function listMetaSecurityCol(query) {
|
|
return request({
|
|
url: '/default-api/meta/metaSecurity/col/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询行配置列表
|
|
export function listMetaSecurityRow(query) {
|
|
return request({
|
|
url: '/default-api/meta/metaSecurity/row/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询列配置详情
|
|
export function getMetaSecurityCol(colId) {
|
|
return request({
|
|
url: '/default-api/meta/metaSecurity/col/' + parseStrEmpty(colId),
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 查询行配置详情
|
|
export function getMetaSecurityRow(rowId) {
|
|
return request({
|
|
url: '/default-api/meta/metaSecurity/row/' + parseStrEmpty(rowId),
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增列配置
|
|
export function addMetaSecurityCol(data) {
|
|
return request({
|
|
url: '/default-api/meta/metaSecurity/col',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 新增行配置
|
|
export function addMetaSecurityRow(data) {
|
|
return request({
|
|
url: '/default-api/meta/metaSecurity/row',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改列配置
|
|
export function updateMetaSecurityCol(data) {
|
|
return request({
|
|
url: '/default-api/meta/metaSecurity/col',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改行配置
|
|
export function updateMetaSecurityRow(data) {
|
|
return request({
|
|
url: '/default-api/meta/metaSecurity/row',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除列配置
|
|
export function deleteMetaSecurityCol(colId) {
|
|
return request({
|
|
url: '/default-api/meta/metaSecurity/col/' + colId,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 删除行配置
|
|
export function deleteMetaSecurityRow(rowId) {
|
|
return request({
|
|
url: '/default-api/meta/metaSecurity/row/' + rowId,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 批量删除列配置
|
|
export function deleteMetaSecurityCols(colIds) {
|
|
return request({
|
|
url: '/default-api/meta/metaSecurity/col/' + colIds,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 批量删除行配置
|
|
export function deleteMetaSecurityRows(rowIds) {
|
|
return request({
|
|
url: '/default-api/meta/metaSecurity/row/' + rowIds,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
|
|
|
|
|
|
|