|
@@ -135,6 +135,152 @@ class MigrateDevicePrinterRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class DevicePatchDTO extends BaseDTO{
|
|
|
+ String? code;
|
|
|
+ String? name;
|
|
|
+ String? description;
|
|
|
+ String? deviceType;
|
|
|
+ String? softwareVersion;
|
|
|
+ String? osVersion;
|
|
|
+ List<UploadDeviceFileInfoDTO >? deviceFileInfoList;
|
|
|
+ int fileSize;
|
|
|
+ String? fileName;
|
|
|
+
|
|
|
+ DevicePatchDTO({
|
|
|
+ this.code,
|
|
|
+ this.name,
|
|
|
+ this.description,
|
|
|
+ this.deviceType,
|
|
|
+ this.softwareVersion,
|
|
|
+ this.osVersion,
|
|
|
+ this.deviceFileInfoList,
|
|
|
+ this.fileSize = 0,
|
|
|
+ this.fileName,
|
|
|
+ DateTime? createTime,
|
|
|
+ DateTime? updateTime,
|
|
|
+ }) : super(
|
|
|
+ createTime: createTime,
|
|
|
+ updateTime: updateTime,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory DevicePatchDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return DevicePatchDTO(
|
|
|
+ code: map['Code'],
|
|
|
+ name: map['Name'],
|
|
|
+ description: map['Description'],
|
|
|
+ deviceType: map['DeviceType'],
|
|
|
+ softwareVersion: map['SoftwareVersion'],
|
|
|
+ osVersion: map['OsVersion'],
|
|
|
+ deviceFileInfoList: map['DeviceFileInfoList'] != null ? (map['DeviceFileInfoList'] as List).map((e)=>UploadDeviceFileInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ fileSize: map['FileSize'],
|
|
|
+ fileName: map['FileName'],
|
|
|
+ createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
+ updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(code != null)
|
|
|
+ map['Code'] = code;
|
|
|
+ if(name != null)
|
|
|
+ map['Name'] = name;
|
|
|
+ if(description != null)
|
|
|
+ map['Description'] = description;
|
|
|
+ if(deviceType != null)
|
|
|
+ map['DeviceType'] = deviceType;
|
|
|
+ if(softwareVersion != null)
|
|
|
+ map['SoftwareVersion'] = softwareVersion;
|
|
|
+ if(osVersion != null)
|
|
|
+ map['OsVersion'] = osVersion;
|
|
|
+ if(deviceFileInfoList != null)
|
|
|
+ map['DeviceFileInfoList'] = deviceFileInfoList;
|
|
|
+ map['FileSize'] = fileSize;
|
|
|
+ if(fileName != null)
|
|
|
+ map['FileName'] = fileName;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class MigrateDevicePatchInfo extends DevicePatchDTO{
|
|
|
+ bool isDelete;
|
|
|
+
|
|
|
+ MigrateDevicePatchInfo({
|
|
|
+ this.isDelete = false,
|
|
|
+ DateTime? createTime,
|
|
|
+ DateTime? updateTime,
|
|
|
+ String? code,
|
|
|
+ String? name,
|
|
|
+ String? description,
|
|
|
+ String? deviceType,
|
|
|
+ String? softwareVersion,
|
|
|
+ String? osVersion,
|
|
|
+ List<UploadDeviceFileInfoDTO >? deviceFileInfoList,
|
|
|
+ int fileSize = 0,
|
|
|
+ String? fileName,
|
|
|
+ }) : super(
|
|
|
+ code: code,
|
|
|
+ name: name,
|
|
|
+ description: description,
|
|
|
+ deviceType: deviceType,
|
|
|
+ softwareVersion: softwareVersion,
|
|
|
+ osVersion: osVersion,
|
|
|
+ deviceFileInfoList: deviceFileInfoList,
|
|
|
+ fileSize: fileSize,
|
|
|
+ fileName: fileName,
|
|
|
+ createTime: createTime,
|
|
|
+ updateTime: updateTime,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory MigrateDevicePatchInfo.fromJson(Map<String, dynamic> map) {
|
|
|
+ return MigrateDevicePatchInfo(
|
|
|
+ isDelete: map['IsDelete'],
|
|
|
+ createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
+ updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
+ code: map['Code'],
|
|
|
+ name: map['Name'],
|
|
|
+ description: map['Description'],
|
|
|
+ deviceType: map['DeviceType'],
|
|
|
+ softwareVersion: map['SoftwareVersion'],
|
|
|
+ osVersion: map['OsVersion'],
|
|
|
+ deviceFileInfoList: map['DeviceFileInfoList'] != null ? (map['DeviceFileInfoList'] as List).map((e)=>UploadDeviceFileInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ fileSize: map['FileSize'],
|
|
|
+ fileName: map['FileName'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ map['IsDelete'] = isDelete;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class MigrateDevicePatchRequest extends TokenRequest{
|
|
|
+ List<MigrateDevicePatchInfo >? migrateDevicePatchInfos;
|
|
|
+
|
|
|
+ MigrateDevicePatchRequest({
|
|
|
+ this.migrateDevicePatchInfos,
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory MigrateDevicePatchRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return MigrateDevicePatchRequest(
|
|
|
+ migrateDevicePatchInfos: map['MigrateDevicePatchInfos'] != null ? (map['MigrateDevicePatchInfos'] as List).map((e)=>MigrateDevicePatchInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ token: map['Token'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(migrateDevicePatchInfos != null)
|
|
|
+ map['MigrateDevicePatchInfos'] = migrateDevicePatchInfos;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class DictionaryLanguageConfigDTO {
|
|
|
String? language;
|
|
|
String? value;
|
|
@@ -2502,73 +2648,6 @@ class AddDevicePatchRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class DevicePatchDTO extends BaseDTO{
|
|
|
- String? code;
|
|
|
- String? name;
|
|
|
- String? description;
|
|
|
- String? deviceType;
|
|
|
- String? softwareVersion;
|
|
|
- String? osVersion;
|
|
|
- List<UploadDeviceFileInfoDTO >? deviceFileInfoList;
|
|
|
- int fileSize;
|
|
|
- String? fileName;
|
|
|
-
|
|
|
- DevicePatchDTO({
|
|
|
- this.code,
|
|
|
- this.name,
|
|
|
- this.description,
|
|
|
- this.deviceType,
|
|
|
- this.softwareVersion,
|
|
|
- this.osVersion,
|
|
|
- this.deviceFileInfoList,
|
|
|
- this.fileSize = 0,
|
|
|
- this.fileName,
|
|
|
- DateTime? createTime,
|
|
|
- DateTime? updateTime,
|
|
|
- }) : super(
|
|
|
- createTime: createTime,
|
|
|
- updateTime: updateTime,
|
|
|
- );
|
|
|
-
|
|
|
- factory DevicePatchDTO.fromJson(Map<String, dynamic> map) {
|
|
|
- return DevicePatchDTO(
|
|
|
- code: map['Code'],
|
|
|
- name: map['Name'],
|
|
|
- description: map['Description'],
|
|
|
- deviceType: map['DeviceType'],
|
|
|
- softwareVersion: map['SoftwareVersion'],
|
|
|
- osVersion: map['OsVersion'],
|
|
|
- deviceFileInfoList: map['DeviceFileInfoList'] != null ? (map['DeviceFileInfoList'] as List).map((e)=>UploadDeviceFileInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
- fileSize: map['FileSize'],
|
|
|
- fileName: map['FileName'],
|
|
|
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- if(code != null)
|
|
|
- map['Code'] = code;
|
|
|
- if(name != null)
|
|
|
- map['Name'] = name;
|
|
|
- if(description != null)
|
|
|
- map['Description'] = description;
|
|
|
- if(deviceType != null)
|
|
|
- map['DeviceType'] = deviceType;
|
|
|
- if(softwareVersion != null)
|
|
|
- map['SoftwareVersion'] = softwareVersion;
|
|
|
- if(osVersion != null)
|
|
|
- map['OsVersion'] = osVersion;
|
|
|
- if(deviceFileInfoList != null)
|
|
|
- map['DeviceFileInfoList'] = deviceFileInfoList;
|
|
|
- map['FileSize'] = fileSize;
|
|
|
- if(fileName != null)
|
|
|
- map['FileName'] = fileName;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
class FindDevicePatchPageRequest extends PageRequest{
|
|
|
String? keyword;
|
|
|
|