// src/api/mes/lotoStation/lotoStation.ts import request from '@/config/axios' export interface LotoStationVO { lotoId?: number lotoName: string lotoCode: string lotoType?: string lotoStatus?: string lotoMap?: string remark?: string createTime?: Date } export interface PageParam { current: number size: number lotoName?: string lotoCode?: string lotoType?: string } // 查询锁定站列表 export const listLoto = async (params: PageParam) => { return await request.get({ url: '/iscs/station/getIsLotoStationPage', params }) } // 查询锁定站详情 export const selectIsLotoStationById = async (id: number) => { return await request.get({ url: '/iscs/station/selectIsLotoStationById', params: { lotoId: id } }) } // 查询锁定站地图数据 export const selectLotoMapById = async (id: number) => { return await request.get({ url: '/iscs/station/selectLotoMapById', params: { lotoId: id } }) } // 新增锁定站 export const addLoto = async (data: LotoStationVO) => { return await request.post({ url: '/iscs/station/insertIsLotoStation', data }) } // 修改锁定站 export const updateLoto = async (data: LotoStationVO) => { return await request.post({ url: '/iscs/station/updateIsLotoStation', data }) } // 删除锁定站 export const delLoto = async (id: number) => { return await request.post({ url: '/iscs/station/deleteIsLotoStationByLotoIds', params: { lotoIds: id } }) } // 更新隔离点绑定关系 export const updatePointsBindingLoto = async (data: any) => { return await request.post({ url: '/iscs/station/updatePointsBindingLoto', data }) }