first commit

This commit is contained in:
liu
2026-07-13 15:23:29 +08:00
commit 50885a98c8
473 changed files with 33772 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',
});
}