This commit is contained in:
wanghu
2026-09-20 09:03:44 +08:00
parent 674f215cb1
commit 7b9160fcbb
79 changed files with 9689 additions and 0 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,6 @@
import { createProdMockServer } from "vite-plugin-mock/es/createProdMockServer";
import DormMock from "./dormapi";
export function setupProdMockServer() {
createProdMockServer([...DormMock]);
}
@@ -0,0 +1,17 @@
import type { IModule } from "@/store";
/**
* 家校宿舍通知 左侧菜单数据(对照后端 GetUserMod 现行模块)。
* 当前由 layout 直接使用;接入后端 GetUserMod 后,以接口返回为准。
*/
export function getMenuList(): Promise<IModule[]> {
const menu: IModule[] = [
{ id: 2, modId: 2, name: "我发布的", page: "/list" },
{ id: 3, modId: 3, name: "全部通知", page: "/noticelist" },
{ id: 25, modId: 25, name: "回执情况", page: "/receipts" },
{ id: 4, modId: 4, name: "通知统计", page: "/stats" },
{ id: 21, modId: 21, name: "宿舍设置", page: "/setting" },
{ id: 31, modId: 31, name: "宿舍通知箱(家长端预览)", page: "/par/notices" },
];
return Promise.resolve(menu);
}