62 lines
1.6 KiB
TypeScript
62 lines
1.6 KiB
TypeScript
![]() |
import type { ElevatorInfoVO, ElevatorInfoForm, ElevatorInfoQuery } from './model';
|
||
|
|
||
|
import type { ID, IDS } from '#/api/common';
|
||
|
import type { PageResult } from '#/api/common';
|
||
|
|
||
|
import { commonExport } from '#/api/helper';
|
||
|
import { requestClient } from '#/api/request';
|
||
|
|
||
|
/**
|
||
|
* 查询电梯基本信息列表
|
||
|
* @param params
|
||
|
* @returns 电梯基本信息列表
|
||
|
*/
|
||
|
export function elevatorInfoList(params?: ElevatorInfoQuery) {
|
||
|
return requestClient.get<PageResult<ElevatorInfoVO>>('/sis/elevatorInfo/list', { params });
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 导出电梯基本信息列表
|
||
|
* @param params
|
||
|
* @returns 电梯基本信息列表
|
||
|
*/
|
||
|
export function elevatorInfoExport(params?: ElevatorInfoQuery) {
|
||
|
return commonExport('/sis/elevatorInfo/export', params ?? {});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 查询电梯基本信息详情
|
||
|
* @param elevatorId id
|
||
|
* @returns 电梯基本信息详情
|
||
|
*/
|
||
|
export function elevatorInfoInfo(elevatorId: ID) {
|
||
|
return requestClient.get<ElevatorInfoVO>(`/sis/elevatorInfo/${elevatorId}`);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 新增电梯基本信息
|
||
|
* @param data
|
||
|
* @returns void
|
||
|
*/
|
||
|
export function elevatorInfoAdd(data: ElevatorInfoForm) {
|
||
|
return requestClient.postWithMsg<void>('/sis/elevatorInfo', data);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 更新电梯基本信息
|
||
|
* @param data
|
||
|
* @returns void
|
||
|
*/
|
||
|
export function elevatorInfoUpdate(data: ElevatorInfoForm) {
|
||
|
return requestClient.putWithMsg<void>('/sis/elevatorInfo', data);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 删除电梯基本信息
|
||
|
* @param elevatorId id
|
||
|
* @returns void
|
||
|
*/
|
||
|
export function elevatorInfoRemove(elevatorId: ID | IDS) {
|
||
|
return requestClient.deleteWithMsg<void>(`/sis/elevatorInfo/${elevatorId}`);
|
||
|
}
|