w-R 3 years ago
parent
commit
7ae6c09c87
  1. 61
      lib/retrofit/retrofit_api.g.dart

61
lib/retrofit/retrofit_api.g.dart

@ -352,13 +352,15 @@ class _ApiService implements ApiService {
const _extra = <String, dynamic>{}; const _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final _data = <String, dynamic>{}; final _data = <String, dynamic>{};
final _headers = <String, dynamic>{};
_headers.addAll({"Environment":"app"});
_data.addAll(param ?? <String, dynamic>{}); _data.addAll(param ?? <String, dynamic>{});
final _result = await _dio.request<Map<String, dynamic>>( final _result = await _dio.request<Map<String, dynamic>>(
'/creditOrder/create', '/creditOrder/create',
queryParameters: queryParameters, queryParameters: queryParameters,
options: RequestOptions( options: RequestOptions(
method: 'POST', method: 'POST',
headers: <String, dynamic>{}, headers: _headers,
extra: _extra, extra: _extra,
baseUrl: baseUrl), baseUrl: baseUrl),
data: _data); data: _data);
@ -1013,7 +1015,8 @@ class _ApiService implements ApiService {
const _extra = <String, dynamic>{}; const _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final _data = <String, dynamic>{}; final _data = <String, dynamic>{};
final _result = await _dio.request<Map<String, dynamic>>('/app-msg/stats', final _result = await _dio.request<Map<String, dynamic>>(
'/app-msg/stats',
queryParameters: queryParameters, queryParameters: queryParameters,
options: RequestOptions( options: RequestOptions(
method: 'GET', method: 'GET',
@ -1189,7 +1192,7 @@ class _ApiService implements ApiService {
} }
@override @override
Future<BaseData<dynamic>> orderCancel(id) async { Future<BaseData<bool>> orderCancel(id) async {
ArgumentError.checkNotNull(id, 'id'); ArgumentError.checkNotNull(id, 'id');
const _extra = <String, dynamic>{}; const _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
@ -1203,9 +1206,9 @@ class _ApiService implements ApiService {
extra: _extra, extra: _extra,
baseUrl: baseUrl), baseUrl: baseUrl),
data: _data); data: _data);
final value = BaseData<dynamic>.fromJson( final value = BaseData<bool>.fromJson(
_result.data, _result.data,
(json) => json as dynamic, (json) => json as bool,
); );
return value; return value;
} }
@ -1390,8 +1393,7 @@ class _ApiService implements ApiService {
final value = BaseData<List<CategorySelectList>>.fromJson( final value = BaseData<List<CategorySelectList>>.fromJson(
_result.data, _result.data,
(json) => (json as List<dynamic>) (json) => (json as List<dynamic>)
.map<CategorySelectList>( .map<CategorySelectList>((i) => CategorySelectList.fromJson(i as Map<String, dynamic>))
(i) => CategorySelectList.fromJson(i as Map<String, dynamic>))
.toList()); .toList());
return value; return value;
} }
@ -1426,7 +1428,8 @@ class _ApiService implements ApiService {
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final _data = <String, dynamic>{}; final _data = <String, dynamic>{};
_data.addAll(map ?? <String, dynamic>{}); _data.addAll(map ?? <String, dynamic>{});
final _result = await _dio.request<Map<String, dynamic>>('/course/list', final _result = await _dio.request<Map<String, dynamic>>(
'/course/list',
queryParameters: queryParameters, queryParameters: queryParameters,
options: RequestOptions( options: RequestOptions(
method: 'POST', method: 'POST',
@ -1461,8 +1464,7 @@ class _ApiService implements ApiService {
final value = BaseData<List<CollectClassList>>.fromJson( final value = BaseData<List<CollectClassList>>.fromJson(
_result.data, _result.data,
(json) => (json as List<dynamic>) (json) => (json as List<dynamic>)
.map<CollectClassList>( .map<CollectClassList>((i) => CollectClassList.fromJson(i as Map<String, dynamic>))
(i) => CollectClassList.fromJson(i as Map<String, dynamic>))
.toList()); .toList());
return value; return value;
} }
@ -1485,8 +1487,7 @@ class _ApiService implements ApiService {
final value = BaseData<List<CourseList>>.fromJson( final value = BaseData<List<CourseList>>.fromJson(
_result.data, _result.data,
(json) => (json as List<dynamic>) (json) => (json as List<dynamic>)
.map<CourseList>( .map<CourseList>((i) => CourseList.fromJson(i as Map<String, dynamic>))
(i) => CourseList.fromJson(i as Map<String, dynamic>))
.toList()); .toList());
return value; return value;
} }
@ -1497,7 +1498,8 @@ class _ApiService implements ApiService {
const _extra = <String, dynamic>{}; const _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final _data = <String, dynamic>{}; final _data = <String, dynamic>{};
final _result = await _dio.request<Map<String, dynamic>>('/course/$id', final _result = await _dio.request<Map<String, dynamic>>(
'/course/$id',
queryParameters: queryParameters, queryParameters: queryParameters,
options: RequestOptions( options: RequestOptions(
method: 'GET', method: 'GET',
@ -1535,14 +1537,13 @@ class _ApiService implements ApiService {
} }
@override @override
Future<BaseData<List<VipBadgesList>>> findBadges(map) async { Future<BaseData<List<VipBadgesList>>> findBadges(param) async {
ArgumentError.checkNotNull(map, 'map'); ArgumentError.checkNotNull(param, 'param');
const _extra = <String, dynamic>{}; const _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final _data = <String, dynamic>{}; final _data = <String, dynamic>{};
_data.addAll(map ?? <String, dynamic>{}); _data.addAll(param ?? <String, dynamic>{});
final _result = await _dio.request<Map<String, dynamic>>( final _result = await _dio.request<Map<String, dynamic>>('/app-memberAchievement/findBadges',
'/app-memberAchievement/findBadges',
queryParameters: queryParameters, queryParameters: queryParameters,
options: RequestOptions( options: RequestOptions(
method: 'POST', method: 'POST',
@ -1553,15 +1554,13 @@ class _ApiService implements ApiService {
final value = BaseData<List<VipBadgesList>>.fromJson( final value = BaseData<List<VipBadgesList>>.fromJson(
_result.data, _result.data,
(json) => (json as List<dynamic>) (json) => (json as List<dynamic>)
.map<VipBadgesList>( .map<VipBadgesList>((i) => VipBadgesList.fromJson(i as Map<String, dynamic>))
(i) => VipBadgesList.fromJson(i as Map<String, dynamic>))
.toList()); .toList());
return value; return value;
} }
@override @override
Future<BaseData<List<AchievementDetailList>>> getAchievementDetail( Future<BaseData<List<AchievementDetailList>>> getAchievementDetail(achievementCategoryId) async {
achievementCategoryId) async {
ArgumentError.checkNotNull(achievementCategoryId, 'achievementCategoryId'); ArgumentError.checkNotNull(achievementCategoryId, 'achievementCategoryId');
const _extra = <String, dynamic>{}; const _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
@ -1578,8 +1577,7 @@ class _ApiService implements ApiService {
final value = BaseData<List<AchievementDetailList>>.fromJson( final value = BaseData<List<AchievementDetailList>>.fromJson(
_result.data, _result.data,
(json) => (json as List<dynamic>) (json) => (json as List<dynamic>)
.map<AchievementDetailList>((i) => .map<AchievementDetailList>((i) => AchievementDetailList.fromJson(i as Map<String, dynamic>))
AchievementDetailList.fromJson(i as Map<String, dynamic>))
.toList()); .toList());
return value; return value;
} }
@ -1601,8 +1599,7 @@ class _ApiService implements ApiService {
final value = BaseData<List<VipBenefitList>>.fromJson( final value = BaseData<List<VipBenefitList>>.fromJson(
_result.data, _result.data,
(json) => (json as List<dynamic>) (json) => (json as List<dynamic>)
.map<VipBenefitList>( .map<VipBenefitList>((i) => VipBenefitList.fromJson(i as Map<String, dynamic>))
(i) => VipBenefitList.fromJson(i as Map<String, dynamic>))
.toList()); .toList());
return value; return value;
} }
@ -1612,7 +1609,8 @@ class _ApiService implements ApiService {
const _extra = <String, dynamic>{}; const _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final _data = <String, dynamic>{}; final _data = <String, dynamic>{};
final _result = await _dio.request<Map<String, dynamic>>('/home/vipBenefit', final _result = await _dio.request<Map<String, dynamic>>(
'/home/vipBenefit',
queryParameters: queryParameters, queryParameters: queryParameters,
options: RequestOptions( options: RequestOptions(
method: 'GET', method: 'GET',
@ -1644,8 +1642,7 @@ class _ApiService implements ApiService {
final value = BaseData<List<SecondCardList>>.fromJson( final value = BaseData<List<SecondCardList>>.fromJson(
_result.data, _result.data,
(json) => (json as List<dynamic>) (json) => (json as List<dynamic>)
.map<SecondCardList>( .map<SecondCardList>((i) => SecondCardList.fromJson(i as Map<String, dynamic>))
(i) => SecondCardList.fromJson(i as Map<String, dynamic>))
.toList()); .toList());
return value; return value;
} }
@ -1755,8 +1752,7 @@ class _ApiService implements ApiService {
final value = BaseData<List<HeadlinesList>>.fromJson( final value = BaseData<List<HeadlinesList>>.fromJson(
_result.data, _result.data,
(json) => (json as List<dynamic>) (json) => (json as List<dynamic>)
.map<HeadlinesList>( .map<HeadlinesList>((i) => HeadlinesList.fromJson(i as Map<String, dynamic>))
(i) => HeadlinesList.fromJson(i as Map<String, dynamic>))
.toList()); .toList());
return value; return value;
} }
@ -1837,7 +1833,8 @@ class _ApiService implements ApiService {
const _extra = <String, dynamic>{}; const _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final _data = <String, dynamic>{}; final _data = <String, dynamic>{};
final _result = await _dio.request<Map<String, dynamic>>('coupon/detail/', final _result = await _dio.request<Map<String, dynamic>>(
'coupon/detail/$memberCouponId',
queryParameters: queryParameters, queryParameters: queryParameters,
options: RequestOptions( options: RequestOptions(
method: 'GET', method: 'GET',

Loading…
Cancel
Save