Files
UserhomeFront/src/api/SysSettingApi.ts
T
chenxing 4279f99be1
deploy-userbase-front / build-and-deploy (push) Failing after 1m54s
build / build (push) Successful in 3m36s
feat: 接入 UserHome 前端业务代码(含真实 src/依赖,保留 projman 标准 CI)
2026-09-09 22:37:59 +08:00

40 lines
1.3 KiB
TypeScript

import Abstract from "@/utils/axios/abstract";
import { PageData, PageParams } from "@/types/Basics";
const path = "/api";
/** 系统设置-基础设置(机构树 / 壁纸 / Logo 管理视图) */
class SysSettingApi extends Abstract {
/** 机构树(仅超管),已裁剪到学校层 */
getSchTree() {
const url = path + "/getSchTree";
return this.getRequest<any>({ url });
}
/** 壁纸管理列表(系统 + 目标学校,不含个人壁纸) */
getSchWallpaperManageList(schId?: number) {
const url = path + "/getSchWallpaperManageList";
return this.getRequest<any[]>({ url, params: { schId } });
}
/** Logo 管理列表(系统 + 目标学校) */
getSchLogoManageList(schId?: number) {
const url = path + "/getSchLogoManageList";
return this.getRequest<any[]>({ url, params: { schId } });
}
/** 删除壁纸(复用 Header 弹窗同接口,属主校验后端完成) */
deleteWallById(id: number) {
const url = path + "/deleteWallById";
return this.postRequest({ url, params: { id } });
}
/** 删除 Logo */
deleteLogoById(id: number) {
const url = path + "/deleteLogoById";
return this.postRequest({ url, params: { id } });
}
}
export default new SysSettingApi();