You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
592 B
28 lines
592 B
import { eamServer } from '../../index' |
|
|
|
interface IMaintenanceOV { |
|
id?: number |
|
content: string |
|
maintainer?: string |
|
maintenanceTime: string |
|
status: number |
|
} |
|
export const createdMaintenance = (data: IMaintenanceOV) => |
|
eamServer({ |
|
url: '/maintenance/create', |
|
method: 'post', |
|
data, |
|
}) |
|
|
|
export const updateMaintenance = (data: IMaintenanceOV) => |
|
eamServer({ |
|
url: '/maintenance/update', |
|
method: 'post', |
|
data, |
|
}) |
|
export const getMaintenanceList = (params: any) => |
|
eamServer({ |
|
url: '/maintenance/get-by-device-id', |
|
method: 'get', |
|
params, |
|
})
|
|
|