package com.dev.lock.data;
|
|
import java.util.Date;
|
|
public class ElectLock_Ctl_Log {
|
|
public int lock_id; //'电子锁ID',
|
public int ctl_type; //'操作类型[1-清空所有授权ID卡 2-远程开锁 3-远程重启 4-设置锁具地址 5-添加授权ID 6-移除授权ID]',
|
public boolean ctl_result; //'操作结果[0-失败 1-成功]',
|
public Date ctl_time; //'操作时间',
|
public int ctl_id_card; //'添加或者移除的授权ID卡号',
|
|
public ElectLock_Ctl_Log() {
|
this.ctl_time = new Date();
|
}
|
|
public ElectLock_Ctl_Log(int lock_id,int ctl_type,boolean ctl_result) {
|
this.lock_id = lock_id;
|
this.ctl_type = ctl_type;
|
this.ctl_result = ctl_result;
|
this.ctl_time = new Date();
|
}
|
|
public ElectLock_Ctl_Log(int lock_id,int ctl_type,boolean ctl_result,int ctl_id_card) {
|
this.lock_id = lock_id;
|
this.ctl_type = ctl_type;
|
this.ctl_result = ctl_result;
|
this.ctl_id_card = ctl_id_card;
|
this.ctl_time = new Date();
|
}
|
|
}
|