|
@@ -1,7 +1,7 @@
|
|
import { httpApp } from "@/plugins/axiosApp";
|
|
import { httpApp } from "@/plugins/axiosApp";
|
|
import { RootOrg, ServerPageResponse } from "@/types";
|
|
import { RootOrg, ServerPageResponse } from "@/types";
|
|
|
|
|
|
-/** 顶级机构分页查询 */
|
|
|
|
|
|
+/** 学校分页查询 */
|
|
export function getRootOrgList(params: {
|
|
export function getRootOrgList(params: {
|
|
code?: string;
|
|
code?: string;
|
|
name?: string;
|
|
name?: string;
|
|
@@ -15,7 +15,7 @@ export function getRootOrgList(params: {
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
-/** 更新顶级机构 */
|
|
|
|
|
|
+/** 更新学校 */
|
|
export function updateRootOrg(params: {
|
|
export function updateRootOrg(params: {
|
|
// code: string;
|
|
// code: string;
|
|
// name: string;
|
|
// name: string;
|
|
@@ -25,7 +25,7 @@ export function updateRootOrg(params: {
|
|
return httpApp.post("/api/ess/root/org/update", params);
|
|
return httpApp.post("/api/ess/root/org/update", params);
|
|
}
|
|
}
|
|
|
|
|
|
-/** 查询顶级机构所有属性 */
|
|
|
|
|
|
+/** 查询学校所有属性 */
|
|
export function getRootOrgSettings(orgId: number) {
|
|
export function getRootOrgSettings(orgId: number) {
|
|
return httpApp.post(`/api/ess/root/org/property/all/${orgId}`);
|
|
return httpApp.post(`/api/ess/root/org/property/all/${orgId}`);
|
|
}
|
|
}
|
|
@@ -40,7 +40,7 @@ export function saveOrgSetting(orgId: number, properties: any) {
|
|
return httpApp.post(`/api/ess/root/org/property/save`, { orgId, properties });
|
|
return httpApp.post(`/api/ess/root/org/property/save`, { orgId, properties });
|
|
}
|
|
}
|
|
|
|
|
|
-/** 同步顶级机构 */
|
|
|
|
|
|
+/** 同步学校 */
|
|
export function syncRootOrg() {
|
|
export function syncRootOrg() {
|
|
return httpApp.post(`/api/ess/root/org/sync`);
|
|
return httpApp.post(`/api/ess/root/org/sync`);
|
|
}
|
|
}
|