meterhouses_transcribes.post.dart 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * @Author : WuWei
  3. * @LastEditors : WuWei
  4. * @Date : 2021-07-13 09:03:28
  5. * @LastEditTime : 2023-06-26 14:53:37
  6. * @FilePath : /app-boost/api_package/lib/meterhouses_transcribes.post.dart
  7. * @Description : Do not edit
  8. */
  9. //*****************************************************************
  10. // Generate by vsc-wisdom-flutter-kit
  11. //*****************************************************************
  12. ///[http://yapi.wisdomcity.com.cn/project/16/interface/api/2873](http://yapi.wisdomcity.com.cn/project/16/interface/api/2873)
  13. ///
  14. ///update 2020-10-9 11:44:48
  15. ///
  16. ///住户仪表抄表
  17. // ignore: library_names
  18. library meterhouses_transcribes.post;
  19. import 'response_model.dart';
  20. import 'package:dio/dio.dart';
  21. ///[http://yapi.wisdomcity.com.cn/project/16/interface/api/2873](http://yapi.wisdomcity.com.cn/project/16/interface/api/2873)
  22. ///
  23. ///update 2020-10-9 11:44:48
  24. ///
  25. ///住户仪表抄表
  26. class Interface {
  27. Interface._();
  28. static const String path = '/app/admin/meterhouses/transcribes';
  29. static const String method = 'post';
  30. static Future<ResponseModel<String>> request(
  31. Dio dio, {
  32. Options? options,
  33. Map<String, dynamic>? pathParameters,
  34. Map<String, dynamic>? queryParameters,
  35. data,
  36. CancelToken? cancelToken,
  37. ProgressCallback? onSendProgress,
  38. ProgressCallback? onReceiveProgress,
  39. }) async {
  40. final res = await dio.request(
  41. _path(pathParameters ?? {}),
  42. data: data,
  43. queryParameters: queryParameters,
  44. cancelToken: cancelToken,
  45. options: Options(method: 'post'),
  46. onSendProgress: onSendProgress,
  47. onReceiveProgress: onReceiveProgress,
  48. );
  49. return ResponseModel(
  50. json: res.data,
  51. to: (v) => v,
  52. from: (v) => v,
  53. );
  54. }
  55. static String _path(Map<String, dynamic> pathParameters) {
  56. String back = path;
  57. for (final key in pathParameters.keys) {
  58. back = back.replaceAll('{$key}', pathParameters[key].toString());
  59. }
  60. return back;
  61. }
  62. }