更新
This commit is contained in:
@@ -12,6 +12,7 @@ MHDeviceShareModel _$MHDeviceShareModelFromJson(Map<String, dynamic> json) =>
|
||||
..type = (json['type'] as num?)?.toInt()
|
||||
..msg = json['msg'] as String?
|
||||
..show = (json['show'] as num?)?.toInt()
|
||||
..code = (json['code'] as num?)?.toInt()
|
||||
..limit = (json['limit'] as num).toInt()
|
||||
..offset = (json['offset'] as num).toInt()
|
||||
..isLoading = json['isLoading'] as bool
|
||||
@@ -21,10 +22,11 @@ MHDeviceShareModel _$MHDeviceShareModelFromJson(Map<String, dynamic> json) =>
|
||||
|
||||
Map<String, dynamic> _$MHDeviceShareModelToJson(MHDeviceShareModel instance) =>
|
||||
<String, dynamic>{
|
||||
'phone': instance.account,
|
||||
'account': instance.account,
|
||||
'type': instance.type,
|
||||
'msg': instance.msg,
|
||||
'show': instance.show,
|
||||
'code': instance.code,
|
||||
'limit': instance.limit,
|
||||
'offset': instance.offset,
|
||||
'isLoading': instance.isLoading,
|
||||
|
||||
@@ -39,7 +39,7 @@ class RepairListController extends GetControllerEx<RepairListModel> {
|
||||
String serviceName = ServiceConstant.server_service;
|
||||
String serviceApi = ServiceConstant.submit_repair;
|
||||
String queryUrl = "${serviceAddress}${serviceName}${serviceApi}";
|
||||
requestWithLog(
|
||||
await requestWithLog(
|
||||
logTitle: "查询报修数据",
|
||||
method: MyHttpMethod.get,
|
||||
queryUrl: queryUrl,
|
||||
|
||||
@@ -12,9 +12,7 @@ RepairListModel _$RepairListModelFromJson(Map<String, dynamic> json) =>
|
||||
..offset = (json['offset'] as num).toInt()
|
||||
..isLoading = json['isLoading'] as bool
|
||||
..hasMore = json['hasMore'] as bool
|
||||
..repairList = (json['repairList'] as List<dynamic>)
|
||||
.map((e) => ApplyRepairModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList();
|
||||
..repairList = json['repairList'] as List<dynamic>;
|
||||
|
||||
Map<String, dynamic> _$RepairListModelToJson(RepairListModel instance) =>
|
||||
<String, dynamic>{
|
||||
|
||||
Reference in New Issue
Block a user