|
|
@ -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; |
|
|
@ -1837,7 +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>>('coupon/detail/', |
|
|
|
final _result = await _dio.request<Map<String, dynamic>>('/coupon/detail/', |
|
|
|
queryParameters: queryParameters, |
|
|
|
queryParameters: queryParameters, |
|
|
|
options: RequestOptions( |
|
|
|
options: RequestOptions( |
|
|
|
method: 'GET', |
|
|
|
method: 'GET', |
|
|
@ -1858,7 +1858,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>>('/member/detail/$id', |
|
|
|
final _result = await _dio.request<Map<String, dynamic>>( |
|
|
|
|
|
|
|
'/member/detail/$id', |
|
|
|
queryParameters: queryParameters, |
|
|
|
queryParameters: queryParameters, |
|
|
|
options: RequestOptions( |
|
|
|
options: RequestOptions( |
|
|
|
method: 'GET', |
|
|
|
method: 'GET', |
|
|
@ -1873,14 +1874,12 @@ class _ApiService implements ApiService { |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Future<BaseData<ActivityPos>> appPopup() async { |
|
|
|
Future<BaseData<ActivityPos>> appPopup() async { |
|
|
|
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/appPopup', |
|
|
|
'/home/appPopup', |
|
|
|
|
|
|
|
queryParameters: queryParameters, |
|
|
|
queryParameters: queryParameters, |
|
|
|
options: RequestOptions( |
|
|
|
options: RequestOptions( |
|
|
|
method: 'GET', |
|
|
|
method: 'GET', |
|
|
@ -1900,7 +1899,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>>('/member/deleteMine', |
|
|
|
final _result = await _dio.request<Map<String, dynamic>>( |
|
|
|
|
|
|
|
'/member/deleteMine', |
|
|
|
queryParameters: queryParameters, |
|
|
|
queryParameters: queryParameters, |
|
|
|
options: RequestOptions( |
|
|
|
options: RequestOptions( |
|
|
|
method: 'GET', |
|
|
|
method: 'GET', |
|
|
@ -1914,5 +1914,4 @@ class _ApiService implements ApiService { |
|
|
|
); |
|
|
|
); |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|