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
import { ResPage, User } from "@/api/interface/index";
import http from "@/api";
 
/**
 * @name 充电柜管理模块
 */
// 获取操作日志列表信息
export const getCabinetLogist = (params: User.ReqUserParams) => {
  return http.post<ResPage<User.ResUserList>>(`/Cabinet/FindCabinetInfo`, params);
};
 
// 充电柜下拉列表
export const CabinetAutocomplete = () => {
  return http.post(`/Cabinet/CabinetAutocomplete`);
};
 
//发卡机柜门信息
export const getFakaJiList = (params: { deviceid: string }) => {
  return http.post(`/FaKaJi/FindFaKaJiInfo`, params);
};
 
//BS取卡
export const ShouDongKaiSuo = (params: { doorNo: string }) => {
  return http.post(`http://10.8.4.7:8081/hxzkuwb/ShouDongKaiSuo`, params);
};
 
//BS全部取卡
export const ShouDongQuanKaiSuo = (params: { deviceId: string }) => {
  return http.post(`http://127.0.0.1:8081/hxzkuwb/ShouDongQuanKaiSuo`, params);
};
 
//柜子
 
// 新增设备
export const addCabinet = (params: any) => {
  return http.post(`/Cabinet/add`, params);
};
 
// 编辑设备
export const editCabinet = (params: any) => {
  return http.post(`/Cabinet/update`, params);
};
 
// 删除设备
export const deleteCabinet = (params: any) => {
  return http.post(`/Cabinet/delete`, params);
};