|
|
@ -9,7 +9,7 @@ part of 'retrofit_api.dart'; |
|
|
|
class _ApiService implements ApiService { |
|
|
|
class _ApiService implements ApiService { |
|
|
|
_ApiService(this._dio, {this.baseUrl}) { |
|
|
|
_ApiService(this._dio, {this.baseUrl}) { |
|
|
|
ArgumentError.checkNotNull(_dio, '_dio'); |
|
|
|
ArgumentError.checkNotNull(_dio, '_dio'); |
|
|
|
baseUrl ??= 'http://192.168.10.236:8766/app/'; |
|
|
|
baseUrl ??= 'https://pos.platform.lotus-wallet.com/app/'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
final Dio _dio; |
|
|
|
final Dio _dio; |
|
|
@ -74,28 +74,6 @@ class _ApiService implements ApiService { |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// @override |
|
|
|
|
|
|
|
// Future<BaseData<dynamic>> memberLogin(param) async { |
|
|
|
|
|
|
|
// ArgumentError.checkNotNull(param, 'param'); |
|
|
|
|
|
|
|
// const _extra = <String, dynamic>{}; |
|
|
|
|
|
|
|
// final queryParameters = <String, dynamic>{}; |
|
|
|
|
|
|
|
// final _data = <String, dynamic>{}; |
|
|
|
|
|
|
|
// _data.addAll(param ?? <String, dynamic>{}); |
|
|
|
|
|
|
|
// final _result = await _dio.request<Map<String, dynamic>>( |
|
|
|
|
|
|
|
// '/auth/platform/memberLogin', |
|
|
|
|
|
|
|
// queryParameters: queryParameters, |
|
|
|
|
|
|
|
// options: RequestOptions( |
|
|
|
|
|
|
|
// method: 'POST', |
|
|
|
|
|
|
|
// headers: <String, dynamic>{}, |
|
|
|
|
|
|
|
// extra: _extra, |
|
|
|
|
|
|
|
// baseUrl: baseUrl), |
|
|
|
|
|
|
|
// data: _data); |
|
|
|
|
|
|
|
// final value = BaseData<dynamic>.fromJson( |
|
|
|
|
|
|
|
// _result.data, |
|
|
|
|
|
|
|
// (json) => json as dynamic, |
|
|
|
|
|
|
|
// ); |
|
|
|
|
|
|
|
// return value; |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Future<BaseData<LoginInfo>> memberLogin(param) async { |
|
|
|
Future<BaseData<LoginInfo>> memberLogin(param) async { |
|
|
|
ArgumentError.checkNotNull(param, 'param'); |
|
|
|
ArgumentError.checkNotNull(param, 'param'); |
|
|
@ -114,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; |
|
|
|
} |
|
|
|
} |
|
|
@ -315,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; |
|
|
|
} |
|
|
|
} |
|
|
@ -374,15 +352,13 @@ 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: _headers, |
|
|
|
headers: <String, dynamic>{}, |
|
|
|
extra: _extra, |
|
|
|
extra: _extra, |
|
|
|
baseUrl: baseUrl), |
|
|
|
baseUrl: baseUrl), |
|
|
|
data: _data); |
|
|
|
data: _data); |
|
|
@ -1037,8 +1013,7 @@ 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>>( |
|
|
|
final _result = await _dio.request<Map<String, dynamic>>('/app-msg/stats', |
|
|
|
'/app-msg/stats', |
|
|
|
|
|
|
|
queryParameters: queryParameters, |
|
|
|
queryParameters: queryParameters, |
|
|
|
options: RequestOptions( |
|
|
|
options: RequestOptions( |
|
|
|
method: 'GET', |
|
|
|
method: 'GET', |
|
|
@ -1048,7 +1023,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; |
|
|
@ -1414,8 +1389,9 @@ 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>((i) => CategorySelectList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.map<CategorySelectList>( |
|
|
|
|
|
|
|
(i) => CategorySelectList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.toList()); |
|
|
|
.toList()); |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
@ -1437,7 +1413,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; |
|
|
@ -1450,8 +1426,7 @@ 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>>( |
|
|
|
final _result = await _dio.request<Map<String, dynamic>>('/course/list', |
|
|
|
'/course/list', |
|
|
|
|
|
|
|
queryParameters: queryParameters, |
|
|
|
queryParameters: queryParameters, |
|
|
|
options: RequestOptions( |
|
|
|
options: RequestOptions( |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
@ -1461,9 +1436,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; |
|
|
@ -1485,8 +1460,9 @@ 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>((i) => CollectClassList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.map<CollectClassList>( |
|
|
|
|
|
|
|
(i) => CollectClassList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.toList()); |
|
|
|
.toList()); |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
@ -1508,8 +1484,9 @@ 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>((i) => CourseList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.map<CourseList>( |
|
|
|
|
|
|
|
(i) => CourseList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.toList()); |
|
|
|
.toList()); |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
@ -1520,8 +1497,7 @@ 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>>( |
|
|
|
final _result = await _dio.request<Map<String, dynamic>>('/course/$id', |
|
|
|
'/course/$id', |
|
|
|
|
|
|
|
queryParameters: queryParameters, |
|
|
|
queryParameters: queryParameters, |
|
|
|
options: RequestOptions( |
|
|
|
options: RequestOptions( |
|
|
|
method: 'GET', |
|
|
|
method: 'GET', |
|
|
@ -1531,7 +1507,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; |
|
|
|
} |
|
|
|
} |
|
|
@ -1553,19 +1529,20 @@ 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(param) async { |
|
|
|
Future<BaseData<List<VipBadgesList>>> findBadges(map) async { |
|
|
|
ArgumentError.checkNotNull(param, 'param'); |
|
|
|
ArgumentError.checkNotNull(map, 'map'); |
|
|
|
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(param ?? <String, dynamic>{}); |
|
|
|
_data.addAll(map ?? <String, dynamic>{}); |
|
|
|
final _result = await _dio.request<Map<String, dynamic>>('/app-memberAchievement/findBadges', |
|
|
|
final _result = await _dio.request<Map<String, dynamic>>( |
|
|
|
|
|
|
|
'/app-memberAchievement/findBadges', |
|
|
|
queryParameters: queryParameters, |
|
|
|
queryParameters: queryParameters, |
|
|
|
options: RequestOptions( |
|
|
|
options: RequestOptions( |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
@ -1575,14 +1552,16 @@ 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>((i) => VipBadgesList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.map<VipBadgesList>( |
|
|
|
|
|
|
|
(i) => VipBadgesList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.toList()); |
|
|
|
.toList()); |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Future<BaseData<List<AchievementDetailList>>> getAchievementDetail(achievementCategoryId) async { |
|
|
|
Future<BaseData<List<AchievementDetailList>>> getAchievementDetail( |
|
|
|
|
|
|
|
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>{}; |
|
|
@ -1598,8 +1577,9 @@ 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) => AchievementDetailList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.map<AchievementDetailList>((i) => |
|
|
|
|
|
|
|
AchievementDetailList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.toList()); |
|
|
|
.toList()); |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
@ -1620,8 +1600,9 @@ 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>((i) => VipBenefitList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.map<VipBenefitList>( |
|
|
|
|
|
|
|
(i) => VipBenefitList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.toList()); |
|
|
|
.toList()); |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
@ -1631,8 +1612,7 @@ 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>>( |
|
|
|
final _result = await _dio.request<Map<String, dynamic>>('/home/vipBenefit', |
|
|
|
'/home/vipBenefit', |
|
|
|
|
|
|
|
queryParameters: queryParameters, |
|
|
|
queryParameters: queryParameters, |
|
|
|
options: RequestOptions( |
|
|
|
options: RequestOptions( |
|
|
|
method: 'GET', |
|
|
|
method: 'GET', |
|
|
@ -1642,7 +1622,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; |
|
|
|
} |
|
|
|
} |
|
|
@ -1663,8 +1643,9 @@ 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>((i) => SecondCardList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.map<SecondCardList>( |
|
|
|
|
|
|
|
(i) => SecondCardList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.toList()); |
|
|
|
.toList()); |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
@ -1686,7 +1667,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; |
|
|
|
} |
|
|
|
} |
|
|
@ -1708,7 +1689,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; |
|
|
|
} |
|
|
|
} |
|
|
@ -1730,7 +1711,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; |
|
|
|
} |
|
|
|
} |
|
|
@ -1752,7 +1733,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; |
|
|
|
} |
|
|
|
} |
|
|
@ -1773,8 +1754,9 @@ 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>((i) => HeadlinesList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.map<HeadlinesList>( |
|
|
|
|
|
|
|
(i) => HeadlinesList.fromJson(i as Map<String, dynamic>)) |
|
|
|
.toList()); |
|
|
|
.toList()); |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
@ -1796,7 +1778,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; |
|
|
|
} |
|
|
|
} |
|
|
@ -1819,9 +1801,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; |
|
|
@ -1844,7 +1826,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; |
|
|
|
} |
|
|
|
} |
|
|
@ -1855,8 +1837,7 @@ 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>>( |
|
|
|
final _result = await _dio.request<Map<String, dynamic>>('coupon/detail/', |
|
|
|
'coupon/detail/$memberCouponId', |
|
|
|
|
|
|
|
queryParameters: queryParameters, |
|
|
|
queryParameters: queryParameters, |
|
|
|
options: RequestOptions( |
|
|
|
options: RequestOptions( |
|
|
|
method: 'GET', |
|
|
|
method: 'GET', |
|
|
@ -1866,9 +1847,8 @@ 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; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|