123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- //*****************************************************************
- // Generate by vsc-wisdom-flutter-kit
- //*****************************************************************
- ///[http://yapi.wisdomcity.com.cn/project/40/interface/api/10085](http://yapi.wisdomcity.com.cn/project/40/interface/api/10085)
- ///
- ///update 2020-10-16 16:5:23
- ///
- ///根据仪表id获取住户表抄表记录
- // ignore: library_names
- library meterReading_record.get;
- import 'response_model.dart';
- import 'package:dio/dio.dart';
- ///[http://yapi.wisdomcity.com.cn/project/40/interface/api/10085](http://yapi.wisdomcity.com.cn/project/40/interface/api/10085)
- ///
- ///update 2020-10-16 16:5:23
- ///
- ///根据仪表id获取住户表抄表记录
- class Interface {
- Interface._();
- static const String path = '/app/admin/meterReading/record';
- 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 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/10085
- ///
- ///
- ///
- ///`id`
- ///
- ///`transcribeDate` 账期
- ///
- ///`transcribeAmount` 抄表读数
- ///
- ///`actualAmount` 实际行度
- ///
- ///`chargeAmount` 计费行度
- ///
- ///`readerName` 抄表员姓名
- ///
- // ignore: camel_case_types
- class $DataModel {
- ///`id`
- String? id;
- ///`transcribeDate` 账期
- String? transcribeDate;
- ///`transcribeAmount` 抄表读数
- num? transcribeAmount;
- ///`actualAmount` 实际行度
- num? actualAmount;
- ///`chargeAmount` 计费行度
- num? chargeAmount;
- ///`readerName` 抄表员姓名
- String? readerName;
- ///http://yapi.wisdomcity.com.cn/project/40/interface/api/10085
- ///
- ///
- ///
- ///`id`
- ///
- ///`transcribeDate` 账期
- ///
- ///`transcribeAmount` 抄表读数
- ///
- ///`actualAmount` 实际行度
- ///
- ///`chargeAmount` 计费行度
- ///
- ///`readerName` 抄表员姓名
- $DataModel({
- this.id,
- this.transcribeDate,
- this.transcribeAmount,
- this.actualAmount,
- this.chargeAmount,
- this.readerName,
- });
- $DataModel.fromJson(json) {
- Map<String, dynamic> map = Map.from(json);
- this.id = map['id'];
- this.transcribeDate = map['transcribeDate'];
- this.transcribeAmount = map['transcribeAmount'];
- this.actualAmount = map['actualAmount'];
- this.chargeAmount = map['chargeAmount'];
- this.readerName = map['readerName'];
- }
- Map<String, dynamic> toJson() {
- Map<String, dynamic> json = Map<String, dynamic>();
- json['id'] = this.id;
- json['transcribeDate'] = this.transcribeDate;
- json['transcribeAmount'] = this.transcribeAmount;
- json['actualAmount'] = this.actualAmount;
- json['chargeAmount'] = this.chargeAmount;
- json['readerName'] = this.readerName;
- return Map.from(json);
- }
- }
|