|
|
@ -46,7 +46,7 @@ class _UserApi implements UserApi { |
|
|
(json) => LoginData.fromJson(json as Map<String, dynamic>), |
|
|
(json) => LoginData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -79,7 +79,7 @@ class _UserApi implements UserApi { |
|
|
(json) => UserBaseData.fromJson(json as Map<String, dynamic>), |
|
|
(json) => UserBaseData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -111,7 +111,7 @@ class _UserApi implements UserApi { |
|
|
(json) => UserData.fromJson(json as Map<String, dynamic>), |
|
|
(json) => UserData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -145,7 +145,7 @@ class _UserApi implements UserApi { |
|
|
(json) => json as dynamic, |
|
|
(json) => json as dynamic, |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -179,7 +179,7 @@ class _UserApi implements UserApi { |
|
|
(json) => json as dynamic, |
|
|
(json) => json as dynamic, |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -213,7 +213,7 @@ class _UserApi implements UserApi { |
|
|
(json) => json as dynamic, |
|
|
(json) => json as dynamic, |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -247,7 +247,7 @@ class _UserApi implements UserApi { |
|
|
(json) => json as dynamic, |
|
|
(json) => json as dynamic, |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -289,7 +289,7 @@ class _UserApi implements UserApi { |
|
|
: List.empty(), |
|
|
: List.empty(), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -320,7 +320,7 @@ class _UserApi implements UserApi { |
|
|
(json) => json as String, |
|
|
(json) => json as String, |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -351,7 +351,7 @@ class _UserApi implements UserApi { |
|
|
(json) => OssData.fromJson(json as Map<String, dynamic>), |
|
|
(json) => OssData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -391,7 +391,7 @@ class _UserApi implements UserApi { |
|
|
: List.empty(), |
|
|
: List.empty(), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -425,7 +425,7 @@ class _UserApi implements UserApi { |
|
|
(json) => UserRoseData.fromJson(json as Map<String, dynamic>), |
|
|
(json) => UserRoseData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -468,7 +468,7 @@ class _UserApi implements UserApi { |
|
|
(json) => RoseHistoryData.fromJson(json as Map<String, dynamic>), |
|
|
(json) => RoseHistoryData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -505,7 +505,7 @@ class _UserApi implements UserApi { |
|
|
(json) => SubmitOrderData.fromJson(json as Map<String, dynamic>), |
|
|
(json) => SubmitOrderData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -548,7 +548,7 @@ class _UserApi implements UserApi { |
|
|
: List.empty(), |
|
|
: List.empty(), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -591,7 +591,7 @@ class _UserApi implements UserApi { |
|
|
: List.empty(), |
|
|
: List.empty(), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -634,7 +634,7 @@ class _UserApi implements UserApi { |
|
|
: List.empty(), |
|
|
: List.empty(), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -677,7 +677,7 @@ class _UserApi implements UserApi { |
|
|
: List.empty(), |
|
|
: List.empty(), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -720,7 +720,7 @@ class _UserApi implements UserApi { |
|
|
: List.empty(), |
|
|
: List.empty(), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -754,7 +754,7 @@ class _UserApi implements UserApi { |
|
|
(json) => json as dynamic, |
|
|
(json) => json as dynamic, |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -796,7 +796,7 @@ class _UserApi implements UserApi { |
|
|
: List.empty(), |
|
|
: List.empty(), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -830,7 +830,7 @@ class _UserApi implements UserApi { |
|
|
(json) => json as dynamic, |
|
|
(json) => json as dynamic, |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -867,7 +867,7 @@ class _UserApi implements UserApi { |
|
|
(json) => BankCardOcrData.fromJson(json as Map<String, dynamic>), |
|
|
(json) => BankCardOcrData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -901,7 +901,7 @@ class _UserApi implements UserApi { |
|
|
(json) => WithdrawData.fromJson(json as Map<String, dynamic>), |
|
|
(json) => WithdrawData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -935,7 +935,7 @@ class _UserApi implements UserApi { |
|
|
(json) => json as dynamic, |
|
|
(json) => json as dynamic, |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -975,7 +975,7 @@ class _UserApi implements UserApi { |
|
|
(json) => WithdrawAuditData.fromJson(json as Map<String, dynamic>), |
|
|
(json) => WithdrawAuditData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -1007,7 +1007,7 @@ class _UserApi implements UserApi { |
|
|
(json) => UserInfoData.fromJson(json as Map<String, dynamic>), |
|
|
(json) => UserInfoData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -1044,7 +1044,7 @@ class _UserApi implements UserApi { |
|
|
(json) => WalletAccountData.fromJson(json as Map<String, dynamic>), |
|
|
(json) => WalletAccountData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -1090,7 +1090,7 @@ class _UserApi implements UserApi { |
|
|
WalletAccountRecordData.fromJson(json as Map<String, dynamic>), |
|
|
WalletAccountRecordData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -1122,7 +1122,7 @@ class _UserApi implements UserApi { |
|
|
(json) => UserInfoData.fromJson(json as Map<String, dynamic>), |
|
|
(json) => UserInfoData.fromJson(json as Map<String, dynamic>), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -1160,7 +1160,7 @@ class _UserApi implements UserApi { |
|
|
), |
|
|
), |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
@ -1191,43 +1191,7 @@ class _UserApi implements UserApi { |
|
|
(json) => json as dynamic, |
|
|
(json) => json as dynamic, |
|
|
); |
|
|
); |
|
|
} on Object catch (e, s) { |
|
|
} on Object catch (e, s) { |
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
rethrow; |
|
|
|
|
|
} |
|
|
|
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
|
|
|
return httpResponse; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
Future<HttpResponse<BaseResponse<PaymentDetailData>>> getPaymentOrderDetail({ |
|
|
|
|
|
required String id, |
|
|
|
|
|
}) async { |
|
|
|
|
|
final _extra = <String, dynamic>{}; |
|
|
|
|
|
final queryParameters = <String, dynamic>{r'id': id}; |
|
|
|
|
|
final _headers = <String, dynamic>{}; |
|
|
|
|
|
const Map<String, dynamic>? _data = null; |
|
|
|
|
|
final _options = |
|
|
|
|
|
_setStreamType<HttpResponse<BaseResponse<PaymentDetailData>>>( |
|
|
|
|
|
Options(method: 'GET', headers: _headers, extra: _extra) |
|
|
|
|
|
.compose( |
|
|
|
|
|
_dio.options, |
|
|
|
|
|
'/dating-agency-mall/user/get/payment-order/detail', |
|
|
|
|
|
queryParameters: queryParameters, |
|
|
|
|
|
data: _data, |
|
|
|
|
|
) |
|
|
|
|
|
.copyWith( |
|
|
|
|
|
baseUrl: _combineBaseUrls(_dio.options.baseUrl, baseUrl), |
|
|
|
|
|
), |
|
|
|
|
|
); |
|
|
|
|
|
final _result = await _dio.fetch<Map<String, dynamic>>(_options); |
|
|
|
|
|
late BaseResponse<PaymentDetailData> _value; |
|
|
|
|
|
try { |
|
|
|
|
|
_value = BaseResponse<PaymentDetailData>.fromJson( |
|
|
|
|
|
_result.data!, |
|
|
|
|
|
(json) => PaymentDetailData.fromJson(json as Map<String, dynamic>), |
|
|
|
|
|
); |
|
|
|
|
|
} on Object catch (e, s) { |
|
|
|
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
|
|
|
|
|
errorLogger?.logError(e, s, _options, _result); |
|
|
rethrow; |
|
|
rethrow; |
|
|
} |
|
|
} |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
|