48 lines
1.3 KiB
TypeScript

import request from '@/config/axios'
// 设备登录日志 VO
export interface VO {
id: number // 编号
loginTime: Date // 登录时间
deviceId: string // 设备编号
assetType: string // 设备类型
assetName: string // 设备名称
identificationCode: string // 识别码
status: boolean // 登录结果
loginRemark: string // 登录备注
loginParameter: string // 登录参数
}
// 设备登录日志 API
export const Api = {
// 查询设备登录日志分页
getPage: async (params: any) => {
return await request.get({ url: `/ticket/assetLoginLog/page`, params })
},
// 查询设备登录日志详情
get: async (id: number) => {
return await request.get({ url: `/ticket/assetLoginLog/get?id=` + id })
},
// 新增设备登录日志
create: async (data: VO) => {
return await request.post({ url: `/ticket/assetLoginLog/create`, data })
},
// 修改设备登录日志
update: async (data: VO) => {
return await request.put({ url: `/ticket/assetLoginLog/update`, data })
},
// 删除设备登录日志
delete: async (id: number) => {
return await request.delete({ url: `/ticket/assetLoginLog/delete?id=` + id })
},
// 导出设备登录日志 Excel
export: async (params) => {
return await request.download({ url: `/ticket/assetLoginLog/export-excel`, params })
}
}