first commit

This commit is contained in:
liu
2026-05-30 17:38:49 +08:00
commit 2bcb722448
413 changed files with 43656 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
import createAxios from '@/utils/request';
import type {ISysRule} from "@/domain/iSysRule.ts";
/** 获取权限列表 */
export async function listRule() {
return createAxios<ISysRule[]>({
url: '/system/rule',
method: 'get',
});
}
/** 设置显示状态 */
export async function ruleParent() {
return createAxios<ISysRule[]>({
url: '/system/rule/parent',
method: 'get',
});
}
/** 设置显示状态 */
export async function showRule(id: number) {
return createAxios({
url: '/system/rule/show/' + id,
method: 'put',
});
}
/** 设置启用状态 */
export async function statusRule(id: number) {
return createAxios({
url: '/system/rule/status/' + id,
method: 'put',
});
}