|
@@ -1,4 +1,5 @@
|
|
|
import { baseHttpUtils } from "@/utils/http/baseHttpUtils";
|
|
|
+import { middlewareHttpUtils } from "@/utils/http/middlewareHttpUtils";
|
|
|
import { object_pre } from "./preTypes";
|
|
|
export interface QueryReq {
|
|
|
orders: string;
|
|
@@ -6,14 +7,15 @@ export interface QueryReq {
|
|
|
pageSize: number;
|
|
|
}
|
|
|
class FloorController {
|
|
|
- static http = new baseHttpUtils();
|
|
|
+ private static http = new middlewareHttpUtils();
|
|
|
+ // static http = new baseHttpUtils();
|
|
|
/**
|
|
|
* 获取建筑楼层
|
|
|
* @param {QueryReq} params
|
|
|
* @returns
|
|
|
*/
|
|
|
static async floorQuery(params: QueryReq) {
|
|
|
- return this.http.postRequest(object_pre + "/floor/query", params);
|
|
|
+ return this.http.postRequest("/object/floor/query", params);
|
|
|
}
|
|
|
/**
|
|
|
* 建筑楼层管理-创建楼层
|