12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- /*
- * @Author : WuWei
- * @LastEditors : WuWei
- * @Date : 2021-07-13 09:03:28
- * @LastEditTime : 2023-06-26 14:53:37
- * @FilePath : /app-boost/api_package/lib/meterhouses_transcribes.post.dart
- * @Description : Do not edit
- */
- //*****************************************************************
- // Generate by vsc-wisdom-flutter-kit
- //*****************************************************************
- ///[http://yapi.wisdomcity.com.cn/project/16/interface/api/2873](http://yapi.wisdomcity.com.cn/project/16/interface/api/2873)
- ///
- ///update 2020-10-9 11:44:48
- ///
- ///住户仪表抄表
- // ignore: library_names
- library meterhouses_transcribes.post;
- import 'response_model.dart';
- import 'package:dio/dio.dart';
- ///[http://yapi.wisdomcity.com.cn/project/16/interface/api/2873](http://yapi.wisdomcity.com.cn/project/16/interface/api/2873)
- ///
- ///update 2020-10-9 11:44:48
- ///
- ///住户仪表抄表
- class Interface {
- Interface._();
- static const String path = '/app/admin/meterhouses/transcribes';
- static const String method = 'post';
- static Future<ResponseModel<String>> 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: 'post'),
- onSendProgress: onSendProgress,
- onReceiveProgress: onReceiveProgress,
- );
- return ResponseModel(
- json: res.data,
- to: (v) => v,
- from: (v) => 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;
- }
- }
|