|
|
|
@ -552,4 +552,48 @@ class _BusinessApiService implements BusinessApiService {
|
|
|
|
|
); |
|
|
|
|
return value; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Future<BaseData> wiped(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>>('ticket/wiped', |
|
|
|
|
queryParameters: queryParameters, |
|
|
|
|
options: RequestOptions( |
|
|
|
|
method: 'POST', |
|
|
|
|
headers: <String, dynamic>{}, |
|
|
|
|
extra: _extra, |
|
|
|
|
baseUrl: baseUrl), |
|
|
|
|
data: _data); |
|
|
|
|
final value = BaseData.fromJson( |
|
|
|
|
_result.data, |
|
|
|
|
(json) => json == null ? null : json, |
|
|
|
|
); |
|
|
|
|
return value; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Future<BaseData> wipedBatch(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>>('ticket/wipedBatch', |
|
|
|
|
queryParameters: queryParameters, |
|
|
|
|
options: RequestOptions( |
|
|
|
|
method: 'POST', |
|
|
|
|
headers: <String, dynamic>{}, |
|
|
|
|
extra: _extra, |
|
|
|
|
baseUrl: baseUrl), |
|
|
|
|
data: _data); |
|
|
|
|
final value = BaseData.fromJson( |
|
|
|
|
_result.data, |
|
|
|
|
(json) => json == null ? null : json, |
|
|
|
|
); |
|
|
|
|
return value; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|