zhitong.yu
8 天以前 378d781e6f35f89652aa36e079a8b7fc44cea77e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
  });
};