mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 08:04:53 +00:00
Add door lock interfaces
This commit is contained in:
57
src/door-lock/interfaces/door.lock.interface.ts
Normal file
57
src/door-lock/interfaces/door.lock.interface.ts
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
import { WorkingDays } from '@app/common/constants/working-days';
|
||||||
|
|
||||||
|
export interface createTickInterface {
|
||||||
|
success: boolean;
|
||||||
|
result: {
|
||||||
|
expire_time: number;
|
||||||
|
ticket_id: string;
|
||||||
|
ticket_key: string;
|
||||||
|
id?: number;
|
||||||
|
};
|
||||||
|
msg?: string;
|
||||||
|
}
|
||||||
|
export interface addDeviceObjectInterface {
|
||||||
|
name: string;
|
||||||
|
encryptedPassword: string;
|
||||||
|
effectiveTime: string;
|
||||||
|
invalidTime: string;
|
||||||
|
ticketId: string;
|
||||||
|
scheduleList?: any[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ScheduleDto {
|
||||||
|
effectiveTime: string;
|
||||||
|
invalidTime: string;
|
||||||
|
workingDay: WorkingDays[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AddDoorLockOnlineInterface {
|
||||||
|
name: string;
|
||||||
|
password: string;
|
||||||
|
effectiveTime: string;
|
||||||
|
invalidTime: string;
|
||||||
|
scheduleList?: ScheduleDto[];
|
||||||
|
}
|
||||||
|
export interface getPasswordInterface {
|
||||||
|
success: boolean;
|
||||||
|
result: [
|
||||||
|
{
|
||||||
|
effective_time: number;
|
||||||
|
id: number;
|
||||||
|
invalid_time: number;
|
||||||
|
name: string;
|
||||||
|
phase: number;
|
||||||
|
phone: string;
|
||||||
|
schedule_list?: [];
|
||||||
|
sn: number;
|
||||||
|
time_zone: string;
|
||||||
|
type: number;
|
||||||
|
},
|
||||||
|
];
|
||||||
|
msg?: string;
|
||||||
|
}
|
||||||
|
export interface deleteTemporaryPasswordInterface {
|
||||||
|
success: boolean;
|
||||||
|
result: boolean;
|
||||||
|
msg?: string;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user