38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import createAxios from '/@/utils/axios'
|
|
import { CommandReqType } from '/@/views/backend/equipment/airBlower/type'
|
|
export const getAirBlowerListReq = () => {
|
|
return createAxios<never, Promise<{
|
|
code: number,
|
|
data: {
|
|
attributeMap: any
|
|
belongLine: string
|
|
irn: string
|
|
madeinfactory: string
|
|
deviceCode: string
|
|
model: string
|
|
modelId: string
|
|
name: string
|
|
}[],
|
|
msg: string,
|
|
success: boolean
|
|
}>>({
|
|
url: '/api/page/turbines/queryWindTurbinesPages',
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
export const getBelongLineListReq = () => {
|
|
return createAxios({
|
|
url: '/api/page/turbines/lines',
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
export const runAirBlowerReq = (data: (CommandReqType & { measType: 199 | 147 | 146 | 138 | 139 | 140 })[]) => {
|
|
return createAxios<unknown, Promise<{ code: number, msg: string, success: boolean }>>({
|
|
url: '/api/page/turbines/windTurbinesControl',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
|
|
} |