feat: 接入 UserHome 前端业务代码(含真实 src/依赖,保留 projman 标准 CI)
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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();
|
||||
Reference in New Issue
Block a user