import { ResPage, User } from "@/api/interface/index";
|
import http from "@/api";
|
|
/**
|
* @name 部门图标管理模块
|
*/
|
// 获取三维地图列表信息
|
export const getThreeMapList = (params: User.ReqUserParams) => {
|
return http.post<ResPage<User.ResUserList>>(`/ThreeMap/FindMarsInfo`, params);
|
};
|
|
// 获取三维地图配置信息
|
export const getThreeMapConfig = () => {
|
return http.post(`/ThreeMap/FindMarsConfig`);
|
};
|
|
// 编辑三维地图配置信息
|
export const editThreeMap = (params: { id: string }) => {
|
return http.post(`/ThreeMap/update`, params);
|
};
|
|
// 删除三维地图配置信息
|
export const deleteThreeMap = (params: { id: string; company: string }) => {
|
return http.post(`/ThreeMap/delete`, params);
|
};
|
|
// 获取三维地图模型列表信息
|
export const getThreeModel = (params: User.ReqUserParams) => {
|
return http.post<ResPage<User.ResUserList>>(`/Threemodel/FindThreemodel`, params);
|
};
|
|
// 新增三维模型配置信息
|
export const addThreeModel = (params: { id: string }) => {
|
return http.post(`/Threemodel/add`, params);
|
};
|
|
// 编辑三维模型配置信息
|
export const editThreeModel = (params: { id: string }) => {
|
return http.post(`/Threemodel/update`, params);
|
};
|
|
// 上传三维模型文件(支持多文件,需表单提交)
|
export const uploadThreeModel = (formData: FormData, onUploadProgress?: (progressEvent: ProgressEvent) => void) => {
|
return http.post(`/Threemodel/upload`, formData, {
|
headers: { "Content-Type": "multipart/form-data" },
|
onUploadProgress
|
});
|
};
|