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);
|
};
|