更新
This commit is contained in:
@@ -10,11 +10,13 @@ DeviceShareListModel _$DeviceShareListModelFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
DeviceShareListModel()
|
||||
..key = json['key'] as String?
|
||||
..all = (json['all'] as num?)?.toInt();
|
||||
..all = (json['all'] as num?)?.toInt()
|
||||
..accountKey = json['accountKey'] as String?;
|
||||
|
||||
Map<String, dynamic> _$DeviceShareListModelToJson(
|
||||
DeviceShareListModel instance) =>
|
||||
<String, dynamic>{
|
||||
'key': instance.key,
|
||||
'all': instance.all,
|
||||
'accountKey': instance.accountKey,
|
||||
};
|
||||
|
||||
@@ -16,8 +16,11 @@ part 'repair_controller.g.dart'; // 由json_serializable自动生成的部分
|
||||
class RepairModel {
|
||||
String? id; //设备id
|
||||
String? param; //设备参数
|
||||
String? issue; //问题描述
|
||||
// String? issue; //问题描述
|
||||
String? fileUrl; //文件地址
|
||||
String? mac; //状态
|
||||
String? desc;//问题描述
|
||||
List? img;//上传图片
|
||||
RepairModel();
|
||||
factory RepairModel.fromJson(Map<String, dynamic> json) {
|
||||
try {
|
||||
@@ -140,7 +143,7 @@ class RepairController extends GetControllerEx<RepairModel> {
|
||||
// apiResponse.msg = "上传限制(视频最大50MB)".tr;
|
||||
// return apiResponse;
|
||||
// }
|
||||
|
||||
|
||||
// // 构建上传地址
|
||||
// String queryUrl =
|
||||
// "${ServiceConstant.service_address}${ServiceConstant.server_service}${ServiceConstant.upload_file}";
|
||||
@@ -175,5 +178,4 @@ class RepairController extends GetControllerEx<RepairModel> {
|
||||
// return ApiResponse(code: -1, msg: "服务器.失败".tr);
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
@@ -9,13 +9,17 @@ part of 'repair_controller.dart';
|
||||
RepairModel _$RepairModelFromJson(Map<String, dynamic> json) => RepairModel()
|
||||
..id = json['id'] as String?
|
||||
..param = json['param'] as String?
|
||||
..issue = json['issue'] as String?
|
||||
..fileUrl = json['fileUrl'] as String?;
|
||||
..fileUrl = json['fileUrl'] as String?
|
||||
..mac = json['mac'] as String?
|
||||
..desc = json['desc'] as String?
|
||||
..img = json['img'] as List<dynamic>?;
|
||||
|
||||
Map<String, dynamic> _$RepairModelToJson(RepairModel instance) =>
|
||||
<String, dynamic>{
|
||||
'id': instance.id,
|
||||
'param': instance.param,
|
||||
'issue': instance.issue,
|
||||
'fileUrl': instance.fileUrl,
|
||||
'mac': instance.mac,
|
||||
'desc': instance.desc,
|
||||
'img': instance.img,
|
||||
};
|
||||
|
||||
@@ -15,7 +15,9 @@ WeatherModel _$WeatherModelFromJson(Map<String, dynamic> json) => WeatherModel()
|
||||
..max_temperature = (json['max_temperature'] as num?)?.toInt()
|
||||
..wind_direction = json['wind_direction'] as String?
|
||||
..wind_speed = (json['wind_speed'] as num?)?.toInt()
|
||||
..cityName = json['cityName'] as String?;
|
||||
..cityName = json['cityName'] as String?
|
||||
..weatherIcon = json['weatherIcon'] as String?
|
||||
..weatherIconurl = json['weatherIconurl'] as String?;
|
||||
|
||||
Map<String, dynamic> _$WeatherModelToJson(WeatherModel instance) =>
|
||||
<String, dynamic>{
|
||||
@@ -28,4 +30,6 @@ Map<String, dynamic> _$WeatherModelToJson(WeatherModel instance) =>
|
||||
'wind_direction': instance.wind_direction,
|
||||
'wind_speed': instance.wind_speed,
|
||||
'cityName': instance.cityName,
|
||||
'weatherIcon': instance.weatherIcon,
|
||||
'weatherIconurl': instance.weatherIconurl,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user