|
|
|
@ -1211,7 +1211,7 @@ class _UserApi implements UserApi { |
|
|
|
Options(method: 'GET', headers: _headers, extra: _extra) |
|
|
|
.compose( |
|
|
|
_dio.options, |
|
|
|
'/dating-agency-mall/user/get/payment-order/detail', |
|
|
|
'dating-agency-mall/user/get/payment-order/detail', |
|
|
|
queryParameters: queryParameters, |
|
|
|
data: _data, |
|
|
|
) |
|
|
|
@ -1245,7 +1245,7 @@ class _UserApi implements UserApi { |
|
|
|
Options(method: 'GET', headers: _headers, extra: _extra) |
|
|
|
.compose( |
|
|
|
_dio.options, |
|
|
|
'dating-agency-chat-audio/user/get/hx/user/token', |
|
|
|
'dating-agency-chat-audio/user/get/own-user-management', |
|
|
|
queryParameters: queryParameters, |
|
|
|
data: _data, |
|
|
|
) |
|
|
|
@ -1266,6 +1266,46 @@ class _UserApi implements UserApi { |
|
|
|
return httpResponse; |
|
|
|
} |
|
|
|
|
|
|
|
@override |
|
|
|
Future<HttpResponse<BaseResponse<WithdrawAuditData>>> userPageFriendRelation({ |
|
|
|
required int pageNum, |
|
|
|
required int pageSize, |
|
|
|
}) async { |
|
|
|
final _extra = <String, dynamic>{}; |
|
|
|
final queryParameters = <String, dynamic>{ |
|
|
|
r'pageNum': pageNum, |
|
|
|
r'pageSize': pageSize, |
|
|
|
}; |
|
|
|
final _headers = <String, dynamic>{}; |
|
|
|
const Map<String, dynamic>? _data = null; |
|
|
|
final _options = |
|
|
|
_setStreamType<HttpResponse<BaseResponse<WithdrawAuditData>>>( |
|
|
|
Options(method: 'GET', headers: _headers, extra: _extra) |
|
|
|
.compose( |
|
|
|
_dio.options, |
|
|
|
'dating-agency-chat-audio/user/page/friend-relation', |
|
|
|
queryParameters: queryParameters, |
|
|
|
data: _data, |
|
|
|
) |
|
|
|
.copyWith( |
|
|
|
baseUrl: _combineBaseUrls(_dio.options.baseUrl, baseUrl), |
|
|
|
), |
|
|
|
); |
|
|
|
final _result = await _dio.fetch<Map<String, dynamic>>(_options); |
|
|
|
late BaseResponse<WithdrawAuditData> _value; |
|
|
|
try { |
|
|
|
_value = BaseResponse<WithdrawAuditData>.fromJson( |
|
|
|
_result.data!, |
|
|
|
(json) => WithdrawAuditData.fromJson(json as Map<String, dynamic>), |
|
|
|
); |
|
|
|
} on Object catch (e, s) { |
|
|
|
errorLogger?.logError(e, s, _options); |
|
|
|
rethrow; |
|
|
|
} |
|
|
|
final httpResponse = HttpResponse(_value, _result); |
|
|
|
return httpResponse; |
|
|
|
} |
|
|
|
|
|
|
|
RequestOptions _setStreamType<T>(RequestOptions requestOptions) { |
|
|
|
if (T != dynamic && |
|
|
|
!(requestOptions.responseType == ResponseType.bytes || |
|
|
|
|