feat: 办事大厅用户面前端(hall)首版入库——由 app/public 改名去 app 层;build.yml 修并发撞名容exit137
build / build (push) Successful in 3m6s

This commit is contained in:
chenxing
2026-09-17 09:12:03 +08:00
parent 6511923327
commit f87523c524
89 changed files with 16000 additions and 14 deletions
+26
View File
@@ -0,0 +1,26 @@
import { Method } from "alova";
import { alovaInstance } from "@/utils/alova/alova-iview";
import type { SchoolTreeNode } from "@/types/svc";
/**
* 基础平台接口(Notice baseApi 平移):用户信息与已授权模块列表(菜单渲染数据源)。
* 模块清单在 UserBase 按本应用 appKey 配置(app_module),按登录人过滤下发。
*/
const BASE = "/api/base";
function get<T = any>(url: string, params?: Record<string, any>): Method<T> {
return new Method<T>("GET", alovaInstance, url, { params });
}
class BaseApi {
/** 当前登录用户信息 */
getUserInfo() {
return get<SchoolTreeNode>(`${BASE}/GetUserInfo`);
}
/** 当前用户已授权的模块列表(左侧菜单数据源) */
getUserMod() {
return get<SchoolTreeNode[]>(`${BASE}/GetUserMod`);
}
}
export const baseApi = new BaseApi();