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