a,领锁,点击+号时,如果获取网络时间失败,不进入下一页,提示必须联网 b. 开锁时:有网络时间则同步,无网络则不同步时间 c. 同步时间功能:必须有网才同步时间,确定和通通锁不一致 2、修改登录、注册、修改密码选择跟当前ip不是用一个国家的时候,弹窗提示
109 lines
2.9 KiB
Dart
Executable File
109 lines
2.9 KiB
Dart
Executable File
class CheckingInListDayEntity {
|
|
|
|
CheckingInListDayEntity(
|
|
{this.errorCode, this.description, this.errorMsg, this.data});
|
|
|
|
CheckingInListDayEntity.fromJson(Map<String, dynamic> json) {
|
|
errorCode = json['errorCode'];
|
|
description = json['description'];
|
|
errorMsg = json['errorMsg'];
|
|
data = json['data'] != null ? Data.fromJson(json['data']) : null;
|
|
}
|
|
int? errorCode;
|
|
String? description;
|
|
String? errorMsg;
|
|
Data? data;
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['errorCode'] = errorCode;
|
|
data['description'] = description;
|
|
data['errorMsg'] = errorMsg;
|
|
if (this.data != null) {
|
|
data['data'] = this.data!.toJson();
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class Data {
|
|
|
|
Data(
|
|
{this.noPunchTimes,
|
|
this.lateTimes,
|
|
this.earlyTimes,
|
|
this.attendanceRecordList});
|
|
|
|
Data.fromJson(Map<String, dynamic> json) {
|
|
noPunchTimes = json['noPunchTimes'];
|
|
lateTimes = json['lateTimes'];
|
|
earlyTimes = json['earlyTimes'];
|
|
if (json['attendanceRecordList'] != null) {
|
|
attendanceRecordList = <AttendanceRecordDayList>[];
|
|
json['attendanceRecordList'].forEach((v) {
|
|
attendanceRecordList!.add(AttendanceRecordDayList.fromJson(v));
|
|
});
|
|
}
|
|
}
|
|
int? noPunchTimes;
|
|
int? lateTimes;
|
|
int? earlyTimes;
|
|
List<AttendanceRecordDayList>? attendanceRecordList;
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['noPunchTimes'] = noPunchTimes;
|
|
data['lateTimes'] = lateTimes;
|
|
data['earlyTimes'] = earlyTimes;
|
|
if (attendanceRecordList != null) {
|
|
data['attendanceRecordList'] =
|
|
attendanceRecordList!.map((v) => v.toJson()).toList();
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class AttendanceRecordDayList {
|
|
|
|
AttendanceRecordDayList(
|
|
{this.headurl,
|
|
this.isSelf,
|
|
this.staffName,
|
|
this.staffId,
|
|
this.attendanceType,
|
|
this.openingTimeEnd,
|
|
this.openingTimeStart,
|
|
this.colorType});
|
|
|
|
AttendanceRecordDayList.fromJson(Map<String, dynamic> json) {
|
|
headurl = json['headurl'];
|
|
isSelf = json['isSelf'];
|
|
staffName = json['staffName'];
|
|
staffId = json['staffId'];
|
|
attendanceType = json['attendanceType'];
|
|
openingTimeEnd = json['openingTimeEnd'];
|
|
openingTimeStart = json['openingTimeStart'];
|
|
colorType = json['colorType'];
|
|
}
|
|
String? headurl;
|
|
int? isSelf;
|
|
String? staffName;
|
|
int? staffId;
|
|
int? attendanceType;
|
|
int? openingTimeEnd;
|
|
int? openingTimeStart;
|
|
int? colorType;
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['headurl'] = headurl;
|
|
data['isSelf'] = isSelf;
|
|
data['staffName'] = staffName;
|
|
data['staffId'] = staffId;
|
|
data['attendanceType'] = attendanceType;
|
|
data['openingTimeEnd'] = openingTimeEnd;
|
|
data['openingTimeStart'] = openingTimeStart;
|
|
data['colorType'] = colorType;
|
|
return data;
|
|
}
|
|
} |