123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318 |
- //*****************************************************************
- // Generate by vsc-wisdom-flutter-kit
- //*****************************************************************
- ///[http://yapi.wisdomcity.com.cn/project/40/interface/api/9806](http://yapi.wisdomcity.com.cn/project/40/interface/api/9806)
- ///
- ///update 2020-10-14 17:43:17
- ///
- ///住户表列表
- // ignore: library_names
- library meterReading_house.get;
- import 'response_model.dart';
- import 'package:dio/dio.dart';
- ///[http://yapi.wisdomcity.com.cn/project/40/interface/api/9806](http://yapi.wisdomcity.com.cn/project/40/interface/api/9806)
- ///
- ///update 2020-10-14 17:43:17
- ///
- ///住户表列表
- class Interface {
- Interface._();
- static const String path = '/app/admin/meterReading/house';
- static const String method = 'get';
- static Future<ResponseModel<ResponsePagingModel<$DataModel>>> request(
- Dio dio, {
- Options? options,
- Map<String, dynamic>? pathParameters,
- Map<String, dynamic>? queryParameters,
- data,
- CancelToken? cancelToken,
- ProgressCallback? onSendProgress,
- ProgressCallback? onReceiveProgress,
- }) async {
- // final _options = options != null ? options.copyWith(method: method) : null;
- final res = await dio.request(
- _path(pathParameters ?? {}),
- data: data,
- queryParameters: queryParameters,
- cancelToken: cancelToken,
- options: Options(method: 'get'),
- onSendProgress: onSendProgress,
- onReceiveProgress: onReceiveProgress,
- );
- return ResponseModel(
- json: res.data,
- to: (v) => v.toJson(),
- from: (v) => ResponsePagingModel(
- json: v,
- to: (v) => v.toJson(),
- from: (v) => $DataModel.fromJson(v),
- ),
- );
- }
- static String _path(Map<String, dynamic> pathParameters) {
- String back = path;
- for (final key in pathParameters.keys) {
- back = back.replaceAll('{$key}', pathParameters[key].toString());
- }
- return back;
- }
- }
- ///http://yapi.wisdomcity.com.cn/project/40/interface/api/9806
- ///
- ///
- ///
- ///`roomNo`
- ///
- ///`meterHouseInfos`
- ///
- // ignore: camel_case_types
- class $DataModel {
- ///`roomNo`
- late String roomNo;
- ///`meterHouseInfos`
- late List<$JuniorMeterHouseInfosModel> meterHouseInfos;
- ///http://yapi.wisdomcity.com.cn/project/40/interface/api/9806
- ///
- ///
- ///
- ///`roomNo`
- ///
- ///`meterHouseInfos`
- $DataModel({
- required this.roomNo,
- required this.meterHouseInfos,
- });
- $DataModel.fromJson(json) {
- Map<String, dynamic> map = Map.from(json);
- this.roomNo = map['roomNo'];
- if (map['meterHouseInfos'] != null)
- this.meterHouseInfos = List.of(map['meterHouseInfos'])
- .map((e) => $JuniorMeterHouseInfosModel.fromJson(e ?? {}))
- .toList();
- }
- Map<String, dynamic> toJson() {
- Map<String, dynamic> json = Map<String, dynamic>();
- json['roomNo'] = this.roomNo;
- json['meterHouseInfos'] =
- this.meterHouseInfos.map((e) => e.toJson()).toList();
- return Map.from(json);
- }
- }
- ///http://yapi.wisdomcity.com.cn/project/40/interface/api/9806
- ///
- ///
- ///
- ///`id`
- ///
- ///`houseId` 房屋id
- ///
- ///`roomNo` 房屋名称
- ///
- ///`meterName` 仪表名称
- ///
- ///`meterType` 表类型枚举
- ///
- ///`meterCode` 表编号
- ///
- ///`initalAmount` 初始读数
- ///
- ///`backhaulAmount` 仪表回程(最大读数)
- ///
- ///`multiple` 倍数
- ///
- ///`lastAmount` 上次最新读数
- ///
- ///`transcribes` 本期是否抄表
- ///
- ///`transcribeDate` 表时间
- ///
- ///`readerDate` 抄表日期
- ///
- ///`lastActualAmount` 实际行度
- ///
- // ignore: camel_case_types
- class $JuniorMeterHouseInfosModel {
- ///`id`
- String? id;
- ///`houseId` 房屋id
- String? houseId;
- ///`roomNo` 房屋名称
- String? roomNo;
- ///`meterName` 仪表名称
- String? meterName;
- ///`meterType` 表类型枚举
- $JuniorMeterTypeModel? meterType;
- ///`meterCode` 表编号
- String? meterCode;
- ///`initalAmount` 初始读数
- num? initalAmount;
- ///`backhaulAmount` 仪表回程(最大读数)
- num? backhaulAmount;
- ///`multiple` 倍数
- num? multiple;
- ///`lastAmount` 上次最新读数
- num? lastAmount;
- ///`transcribes` 本期是否抄表
- bool? transcribes;
- ///`transcribeDate` 表时间
- String? transcribeDate;
- ///`readerDate` 抄表日期
- String? readerDate;
- ///`lastActualAmount` 实际行度
- num? lastActualAmount;
- ///http://yapi.wisdomcity.com.cn/project/40/interface/api/9806
- ///
- ///
- ///
- ///`id`
- ///
- ///`houseId` 房屋id
- ///
- ///`roomNo` 房屋名称
- ///
- ///`meterName` 仪表名称
- ///
- ///`meterType` 表类型枚举
- ///
- ///`meterCode` 表编号
- ///
- ///`initalAmount` 初始读数
- ///
- ///`backhaulAmount` 仪表回程(最大读数)
- ///
- ///`multiple` 倍数
- ///
- ///`lastAmount` 上次最新读数
- ///
- ///`transcribes` 本期是否抄表
- ///
- ///`transcribeDate` 表时间
- ///
- ///`readerDate` 抄表日期
- ///
- ///`lastActualAmount` 实际行度
- $JuniorMeterHouseInfosModel({
- this.id,
- this.houseId,
- this.roomNo,
- this.meterName,
- this.meterType,
- this.meterCode,
- this.initalAmount,
- this.backhaulAmount,
- this.multiple,
- this.lastAmount,
- this.transcribes,
- this.transcribeDate,
- this.readerDate,
- this.lastActualAmount,
- });
- $JuniorMeterHouseInfosModel.fromJson(json) {
- Map<String, dynamic> map = Map.from(json);
- this.id = map['id'];
- this.houseId = map['houseId'];
- this.roomNo = map['roomNo'];
- this.meterName = map['meterName'];
- if (map['meterType'] != null)
- this.meterType = $JuniorMeterTypeModel.fromJson(map['meterType']);
- this.meterCode = map['meterCode'];
- this.initalAmount = map['initalAmount'];
- this.backhaulAmount = map['backhaulAmount'];
- this.multiple = map['multiple'];
- this.lastAmount = map['lastAmount'];
- this.transcribes = map['transcribes'];
- this.transcribeDate = map['transcribeDate'];
- this.readerDate = map['readerDate'];
- this.lastActualAmount = map['lastActualAmount'];
- }
- Map<String, dynamic> toJson() {
- Map<String, dynamic> json = Map<String, dynamic>();
- json['id'] = this.id;
- json['houseId'] = this.houseId;
- json['roomNo'] = this.roomNo;
- json['meterName'] = this.meterName;
- json['meterType'] = this.meterType?.toJson();
- json['meterCode'] = this.meterCode;
- json['initalAmount'] = this.initalAmount;
- json['backhaulAmount'] = this.backhaulAmount;
- json['multiple'] = this.multiple;
- json['lastAmount'] = this.lastAmount;
- json['transcribes'] = this.transcribes;
- json['transcribeDate'] = this.transcribeDate;
- json['readerDate'] = this.readerDate;
- json['lastActualAmount'] = this.lastActualAmount;
- return Map.from(json);
- }
- }
- ///http://yapi.wisdomcity.com.cn/project/40/interface/api/9806
- ///
- ///表类型枚举
- ///
- ///`code`
- ///
- ///`name`
- ///
- // ignore: camel_case_types
- class $JuniorMeterTypeModel {
- ///`code`
- String? code;
- ///`name`
- String? name;
- ///http://yapi.wisdomcity.com.cn/project/40/interface/api/9806
- ///
- ///表类型枚举
- ///
- ///`code`
- ///
- ///`name`
- $JuniorMeterTypeModel({
- this.code,
- this.name,
- });
- $JuniorMeterTypeModel.fromJson(json) {
- Map<String, dynamic> map = Map.from(json);
- this.code = map['code'];
- this.name = map['name'];
- }
- Map<String, dynamic> toJson() {
- Map<String, dynamic> json = Map<String, dynamic>();
- json['code'] = this.code;
- json['name'] = this.name;
- return Map.from(json);
- }
- }
|