import request from '@/config/axios' // 入场记录 VO export interface EntryRecordVO { id: number // 入场id orderId: string // 入场记录编号 parkNumber: string // 场库编号 plate: string // 车牌 idCard: string // 证件号码 inTime: string // 入场时间 inChannel: string // 入场通道名称 inImage: string // 入场图片名 visitReason: string // 访问事由 openGateMode: string // 放行类型 matchMode: string // 匹配模式 barriorOpen: string // 是否开闸 costTime: string // 开闸耗时 } // 入场记录 API export const EntryRecordApi = { // 查询入场记录分页 getEntryRecordPage: async (params: any) => { return await request.get({ url: `/parking/entry-record/page`, params }) }, // 查询入场记录详情 getEntryRecord: async (id: number) => { return await request.get({ url: `/parking/entry-record/get?id=` + id }) }, // 新增入场记录 createEntryRecord: async (data: EntryRecordVO) => { return await request.post({ url: `/parking/entry-record/create`, data }) }, // 修改入场记录 updateEntryRecord: async (data: EntryRecordVO) => { return await request.put({ url: `/parking/entry-record/update`, data }) }, // 删除入场记录 deleteEntryRecord: async (id: number) => { return await request.delete({ url: `/parking/entry-record/delete?id=` + id }) }, // 导出入场记录 Excel exportEntryRecord: async (params) => { return await request.download({ url: `/parking/entry-record/export-excel`, params }) }, }