You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

893 lines
27 KiB

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'min_api.dart';
// **************************************************************************
// RetrofitGenerator
// **************************************************************************
// ignore_for_file: unnecessary_brace_in_string_interps,no_leading_underscores_for_local_identifiers
class _MinApiService implements MinApiService {
_MinApiService(
this._dio, {
this.baseUrl,
}) {
baseUrl ??= 'http://192.168.10.78:8765/app/';
}
final Dio _dio;
String? baseUrl;
@override
Future<BaseData<dynamic>> memberInfo() async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _result = await _dio
.fetch<Map<String, dynamic>>(_setStreamType<BaseData<dynamic>>(Options(
method: 'GET',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'/member/info',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<dynamic>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<List<FindMiniGroup>>> findMiNiGroupList(
Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<List<FindMiniGroup>>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'product/findMiNiGroupList',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<List<FindMiniGroup>>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<MiniDetail>> miNiDetail(String id) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<MiniDetail>>(Options(
method: 'GET',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'/product/queryMiNiProductDetail?id=${id}',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<MiniDetail>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<List<ShoppingCart>>> addShoppingCart(
Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<List<ShoppingCart>>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'shoppingcart',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<List<ShoppingCart>>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<List<ShoppingCart>>> getShoppingCart(int tableId) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{r'tableId': tableId};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<List<ShoppingCart>>>(Options(
method: 'GET',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'shoppingcart',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<List<ShoppingCart>>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<bool>> clearShoppingCart(String storeId) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{r'storeId': storeId};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _result = await _dio
.fetch<Map<String, dynamic>>(_setStreamType<BaseData<bool>>(Options(
method: 'GET',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'shoppingcart/delCart?storeId={storeId}',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<bool>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<List<ShoppingCart>>> shoppingCart1(
Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<List<ShoppingCart>>>(Options(
method: 'PUT',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'shoppingcart',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<List<ShoppingCart>>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<List<ShoppingCart>>> shoppingCartSingle(
Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<List<ShoppingCart>>>(Options(
method: 'PUT',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'shoppingcart/single',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<List<ShoppingCart>>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<SettleOrderInfo>> getOrderInfo(
Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<SettleOrderInfo>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'order/getOrderInfo',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<SettleOrderInfo>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<MinOrderInfo>> getOrderDetails(
Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<MinOrderInfo>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'order/getOrderDetail',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<MinOrderInfo>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<List<Address>>> queryAddress() async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<List<Address>>>(Options(
method: 'GET',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'address/queryMemberAddress',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<List<Address>>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<dynamic>> placeOrderFirst(Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio
.fetch<Map<String, dynamic>>(_setStreamType<BaseData<dynamic>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'order/placeOrderFirst',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<dynamic>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<dynamic>> addOrder(Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio
.fetch<Map<String, dynamic>>(_setStreamType<BaseData<dynamic>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'order/addOrder',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<dynamic>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<WxPay>> settlementWx(Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio
.fetch<Map<String, dynamic>>(_setStreamType<BaseData<WxPay>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'order/settlement',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<WxPay>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<dynamic>> settlementApi(Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio
.fetch<Map<String, dynamic>>(_setStreamType<BaseData<dynamic>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'order/settlement',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<dynamic>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<dynamic>> queryStoreInfo1(Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio
.fetch<Map<String, dynamic>>(_setStreamType<BaseData<dynamic>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'store/getStore',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<dynamic>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<dynamic>> getParentInfo(String tableId) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _result = await _dio
.fetch<Map<String, dynamic>>(_setStreamType<BaseData<dynamic>>(Options(
method: 'GET',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'order/getParentInfo?tableId=${tableId}',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<dynamic>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<List<HomeRecommendList>>> recommendList() async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<List<HomeRecommendList>>>(Options(
method: 'GET',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'product/recommendList',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<List<HomeRecommendList>>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<ShopingHomeConfig>> homeConfig() async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<ShopingHomeConfig>>(Options(
method: 'GET',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'store/homeConfig',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<ShopingHomeConfig>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<ActivityAreaList>> findActListByType(
bool allDay,
String type,
) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<ActivityAreaList>>(Options(
method: 'GET',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'actTemplate/findActListByType?allDay=${allDay}&type=${type}',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<ActivityAreaList>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<ActivityDetails>> viewProduct(
String actProductId,
String type,
) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<ActivityDetails>>(Options(
method: 'GET',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'actTemplate/viewProduct?actProductId=${actProductId}&type=${type}',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<ActivityDetails>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<LaunchJoinAct>> launchAct(Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<LaunchJoinAct>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'actTemplate/launchAct',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<LaunchJoinAct>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<LaunchJoinAct>> joinAct(Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<LaunchJoinAct>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'actTemplate/joinAct',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<LaunchJoinAct>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<WxPay>> actPay(Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio
.fetch<Map<String, dynamic>>(_setStreamType<BaseData<WxPay>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'actTemplate/actPay',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<WxPay>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<List<ActivityOrder>>> showMyActList(
Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<List<ActivityOrder>>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'actTemplate/showMyActList',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<List<ActivityOrder>>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<ActivityActRecordDetails>> showOneAct(
String actRecordId) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<ActivityActRecordDetails>>(Options(
method: 'GET',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'actTemplate/showOneAct?actRecordId=${actRecordId}',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<ActivityActRecordDetails>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<dynamic>> cancelMemberCoupon(String orderId) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _result = await _dio
.fetch<Map<String, dynamic>>(_setStreamType<BaseData<dynamic>>(Options(
method: 'GET',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'promotion/cancelMemberCoupon?orderId=${orderId}',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<dynamic>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<dynamic>> useMemberCoupon(Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio
.fetch<Map<String, dynamic>>(_setStreamType<BaseData<dynamic>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'promotion/useMemberCoupon',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<dynamic>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<dynamic>> memberRecharge(Map<String, dynamic> param) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
final _data = <String, dynamic>{};
_data.addAll(param);
final _result = await _dio
.fetch<Map<String, dynamic>>(_setStreamType<BaseData<dynamic>>(Options(
method: 'POST',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'/member/recharge',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<dynamic>.fromJson(_result.data!);
return value;
}
@override
Future<BaseData<List<MemberRecharge>>> memberRechargeList() async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _result = await _dio.fetch<Map<String, dynamic>>(
_setStreamType<BaseData<List<MemberRecharge>>>(Options(
method: 'GET',
headers: _headers,
extra: _extra,
)
.compose(
_dio.options,
'/store/getRechargePreferential',
queryParameters: queryParameters,
data: _data,
)
.copyWith(
baseUrl: _combineBaseUrls(
_dio.options.baseUrl,
baseUrl,
))));
final value = BaseData<List<MemberRecharge>>.fromJson(_result.data!);
return value;
}
RequestOptions _setStreamType<T>(RequestOptions requestOptions) {
if (T != dynamic &&
!(requestOptions.responseType == ResponseType.bytes ||
requestOptions.responseType == ResponseType.stream)) {
if (T == String) {
requestOptions.responseType = ResponseType.plain;
} else {
requestOptions.responseType = ResponseType.json;
}
}
return requestOptions;
}
String _combineBaseUrls(
String dioBaseUrl,
String? baseUrl,
) {
if (baseUrl == null || baseUrl.trim().isEmpty) {
return dioBaseUrl;
}
final url = Uri.parse(baseUrl);
if (url.isAbsolute) {
return url.toString();
}
return Uri.parse(dioBaseUrl).resolveUri(url).toString();
}
}