fix: rename field
This commit is contained in:
@@ -2,13 +2,13 @@ import { omit } from 'lodash-es'
|
|||||||
import { httpConfig } from '~/config'
|
import { httpConfig } from '~/config'
|
||||||
|
|
||||||
interface DeviceStatus {
|
interface DeviceStatus {
|
||||||
floor: string
|
floorName: string
|
||||||
unit: string
|
unitNumber: string
|
||||||
device: string
|
deviceName: string
|
||||||
room: string
|
roomName: string
|
||||||
devType: string
|
deviceType: string
|
||||||
code: string
|
code: string
|
||||||
tower: string
|
towerNumber: string
|
||||||
payload: string
|
payload: string
|
||||||
topics?: unknown
|
topics?: unknown
|
||||||
createAt?: unknown
|
createAt?: unknown
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ export default abstract class QueryService {
|
|||||||
status: 'success'
|
status: 'success'
|
||||||
message: 'command accepted'
|
message: 'command accepted'
|
||||||
data: {
|
data: {
|
||||||
floor: string
|
floorName: string
|
||||||
unit: string
|
unitNumber: string
|
||||||
device: string
|
deviceName: string
|
||||||
room: string
|
roomName: string
|
||||||
devType: string
|
deviceType: string
|
||||||
code: string
|
code: string
|
||||||
tower: string
|
towerNumber: string
|
||||||
payload: string
|
payload: string
|
||||||
}
|
}
|
||||||
} | null> {
|
} | null> {
|
||||||
@@ -25,13 +25,13 @@ export default abstract class QueryService {
|
|||||||
status: 'success',
|
status: 'success',
|
||||||
message: 'command accepted',
|
message: 'command accepted',
|
||||||
data: {
|
data: {
|
||||||
floor: 'L2',
|
floorName: 'L2',
|
||||||
unit: '01',
|
unitNumber: '01',
|
||||||
device: 'BL',
|
deviceName: 'BL',
|
||||||
room: 'LV',
|
roomName: 'LV',
|
||||||
devType: 'S',
|
deviceType: 'S',
|
||||||
code: 'S',
|
code: 'S',
|
||||||
tower: 'T1',
|
towerNumber: 'T1',
|
||||||
payload: 'Open',
|
payload: 'Open',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -42,13 +42,13 @@ export default abstract class QueryService {
|
|||||||
status: 'success',
|
status: 'success',
|
||||||
message: 'command accepted',
|
message: 'command accepted',
|
||||||
data: {
|
data: {
|
||||||
floor: 'L2',
|
floorName: 'L2',
|
||||||
unit: '01',
|
unitNumber: '01',
|
||||||
device: 'L',
|
deviceName: 'L',
|
||||||
room: 'LV',
|
roomName: 'LV',
|
||||||
devType: 'S',
|
deviceType: 'S',
|
||||||
code: 'C',
|
code: 'C',
|
||||||
tower: 'T1',
|
towerNumber: 'T1',
|
||||||
payload: 'On',
|
payload: 'On',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,13 +70,13 @@ export const deviceQueryResponseSchema = {
|
|||||||
status: z.literal('success'),
|
status: z.literal('success'),
|
||||||
message: z.literal('command accepted'),
|
message: z.literal('command accepted'),
|
||||||
data: z.object({
|
data: z.object({
|
||||||
floor: z.string(),
|
floorName: z.string(),
|
||||||
unit: z.string(),
|
unitNumber: z.string(),
|
||||||
device: z.string(),
|
deviceName: z.string(),
|
||||||
room: z.string(),
|
roomName: z.string(),
|
||||||
devType: z.string(),
|
deviceType: z.string(),
|
||||||
code: z.string(),
|
code: z.string(),
|
||||||
tower: z.string(),
|
towerNumber: z.string(),
|
||||||
payload: z.string(),
|
payload: z.string(),
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user