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

Loading…
Cancel
Save