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

113
lib/retrofit/retrofit_api.g.dart

@ -92,7 +92,7 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<LoginInfo>.fromJson( final value = BaseData<LoginInfo>.fromJson(
_result.data, _result.data,
(json) => LoginInfo.fromJson(json), (json) => LoginInfo.fromJson(json),
); );
return value; return value;
} }
@ -293,7 +293,7 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<dynamic>.fromJson( final value = BaseData<dynamic>.fromJson(
_result.data, _result.data,
(json) => json as dynamic, (json) => json as dynamic,
); );
return value; return value;
} }
@ -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',
@ -1023,7 +1026,7 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<List<MsgStats>>.fromJson( final value = BaseData<List<MsgStats>>.fromJson(
_result.data, _result.data,
(json) => (json as List<dynamic>) (json) => (json as List<dynamic>)
.map<MsgStats>((i) => MsgStats.fromJson(i as Map<String, dynamic>)) .map<MsgStats>((i) => MsgStats.fromJson(i as Map<String, dynamic>))
.toList()); .toList());
return value; return value;
@ -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;
} }
@ -1389,9 +1392,8 @@ class _ApiService implements ApiService {
data: _data); data: _data);
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;
} }
@ -1413,7 +1415,7 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<List<Chapter>>.fromJson( final value = BaseData<List<Chapter>>.fromJson(
_result.data, _result.data,
(json) => (json as List<dynamic>) (json) => (json as List<dynamic>)
.map<Chapter>((i) => Chapter.fromJson(i as Map<String, dynamic>)) .map<Chapter>((i) => Chapter.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',
@ -1436,9 +1439,9 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<PageInfo<CourseList>>.fromJson( final value = BaseData<PageInfo<CourseList>>.fromJson(
_result.data, _result.data,
(json) => PageInfo<CourseList>.fromJson( (json) => PageInfo<CourseList>.fromJson(
json, json,
(json) => CourseList.fromJson(json), (json) => CourseList.fromJson(json),
), ),
); );
return value; return value;
@ -1460,9 +1463,8 @@ class _ApiService implements ApiService {
data: _data); data: _data);
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;
} }
@ -1484,9 +1486,8 @@ class _ApiService implements ApiService {
data: _data); data: _data);
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',
@ -1507,7 +1509,7 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<CourseDetails>.fromJson( final value = BaseData<CourseDetails>.fromJson(
_result.data, _result.data,
(json) => CourseDetails.fromJson(json), (json) => CourseDetails.fromJson(json),
); );
return value; return value;
} }
@ -1529,20 +1531,19 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<dynamic>.fromJson( final value = BaseData<dynamic>.fromJson(
_result.data, _result.data,
(json) => json as dynamic, (json) => json as dynamic,
); );
return value; return value;
} }
@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',
@ -1552,16 +1553,14 @@ class _ApiService implements ApiService {
data: _data); data: _data);
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>{};
@ -1577,9 +1576,8 @@ class _ApiService implements ApiService {
data: _data); data: _data);
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;
} }
@ -1600,9 +1598,8 @@ class _ApiService implements ApiService {
data: _data); data: _data);
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',
@ -1622,7 +1620,7 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<VipRuleDetails>.fromJson( final value = BaseData<VipRuleDetails>.fromJson(
_result.data, _result.data,
(json) => VipRuleDetails.fromJson(json), (json) => VipRuleDetails.fromJson(json),
); );
return value; return value;
} }
@ -1643,9 +1641,8 @@ class _ApiService implements ApiService {
data: _data); data: _data);
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;
} }
@ -1667,7 +1664,7 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<dynamic>.fromJson( final value = BaseData<dynamic>.fromJson(
_result.data, _result.data,
(json) => json as dynamic, (json) => json as dynamic,
); );
return value; return value;
} }
@ -1689,7 +1686,7 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<dynamic>.fromJson( final value = BaseData<dynamic>.fromJson(
_result.data, _result.data,
(json) => json as dynamic, (json) => json as dynamic,
); );
return value; return value;
} }
@ -1711,7 +1708,7 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<Logistics>.fromJson( final value = BaseData<Logistics>.fromJson(
_result.data, _result.data,
(json) => Logistics.fromJson(json), (json) => Logistics.fromJson(json),
); );
return value; return value;
} }
@ -1733,7 +1730,7 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<dynamic>.fromJson( final value = BaseData<dynamic>.fromJson(
_result.data, _result.data,
(json) => json as dynamic, (json) => json as dynamic,
); );
return value; return value;
} }
@ -1754,9 +1751,8 @@ class _ApiService implements ApiService {
data: _data); data: _data);
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;
} }
@ -1778,7 +1774,7 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<HeadlinesListDetails>.fromJson( final value = BaseData<HeadlinesListDetails>.fromJson(
_result.data, _result.data,
(json) => HeadlinesListDetails.fromJson(json), (json) => HeadlinesListDetails.fromJson(json),
); );
return value; return value;
} }
@ -1801,9 +1797,9 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<PageInfo<InvitationList>>.fromJson( final value = BaseData<PageInfo<InvitationList>>.fromJson(
_result.data, _result.data,
(json) => PageInfo<InvitationList>.fromJson( (json) => PageInfo<InvitationList>.fromJson(
json, json,
(json) => InvitationList.fromJson(json), (json) => InvitationList.fromJson(json),
), ),
); );
return value; return value;
@ -1826,7 +1822,7 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<dynamic>.fromJson( final value = BaseData<dynamic>.fromJson(
_result.data, _result.data,
(json) => json as dynamic, (json) => json as dynamic,
); );
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',
@ -1847,7 +1844,7 @@ class _ApiService implements ApiService {
data: _data); data: _data);
final value = BaseData<CouponDetail>.fromJson( final value = BaseData<CouponDetail>.fromJson(
_result.data, _result.data,
(json) => CouponDetail.fromJson(json), (json) => CouponDetail.fromJson(json),
); );
return value; return value;
} }

Loading…
Cancel
Save