|
|
@ -1166,27 +1166,27 @@ class _ApiService implements ApiService { |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
// @override |
|
|
|
Future<BaseData<dynamic>> report(map) async { |
|
|
|
// Future<BaseData<dynamic>> report(map) async { |
|
|
|
ArgumentError.checkNotNull(map, 'map'); |
|
|
|
// 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(map ?? <String, dynamic>{}); |
|
|
|
// _data.addAll(map ?? <String, dynamic>{}); |
|
|
|
final _result = await _dio.request<Map<String, dynamic>>('/other/report', |
|
|
|
// final _result = await _dio.request<Map<String, dynamic>>('/other/report', |
|
|
|
queryParameters: queryParameters, |
|
|
|
// queryParameters: queryParameters, |
|
|
|
options: RequestOptions( |
|
|
|
// options: RequestOptions( |
|
|
|
method: 'POST', |
|
|
|
// method: 'POST', |
|
|
|
headers: <String, dynamic>{}, |
|
|
|
// headers: <String, dynamic>{}, |
|
|
|
extra: _extra, |
|
|
|
// extra: _extra, |
|
|
|
baseUrl: baseUrl), |
|
|
|
// baseUrl: baseUrl), |
|
|
|
data: _data); |
|
|
|
// data: _data); |
|
|
|
final value = BaseData<dynamic>.fromJson( |
|
|
|
// final value = BaseData<dynamic>.fromJson( |
|
|
|
_result.data, |
|
|
|
// _result.data, |
|
|
|
(json) => json as bool, |
|
|
|
// (json) => json as bool, |
|
|
|
); |
|
|
|
// ); |
|
|
|
return value; |
|
|
|
// return value; |
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Future<BaseData<dynamic>> orderCancel(id) async { |
|
|
|
Future<BaseData<dynamic>> orderCancel(id) async { |
|
|
@ -1915,4 +1915,26 @@ class _ApiService implements ApiService { |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
Future<BaseData<dynamic>> complaint(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>>('/information/complaint', |
|
|
|
|
|
|
|
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; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|