// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'min_api.dart';

// **************************************************************************
// RetrofitGenerator
// **************************************************************************

class _MinApiService implements MinApiService {
  _MinApiService(this._dio, {this.baseUrl}) {
    ArgumentError.checkNotNull(_dio, '_dio');
    baseUrl ??= 'http://192.168.10.236:8765/app/';
  }

  final Dio _dio;

  String baseUrl;

  @override
  Future<BaseData<List<FindMiNiGroupList>>> findMiNiGroupList(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>>(
        'product/findMiNiGroupList',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'POST',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<List<FindMiNiGroupList>>.fromJson(
        _result.data,
        (json) => (json as List<dynamic>)
            .map<FindMiNiGroupList>(
                (i) => FindMiNiGroupList.fromJson(i as Map<String, dynamic>))
            .toList());
    return value;
  }

  @override
  Future<BaseData<MiNiDetail>> miNiDetail(id) async {
    ArgumentError.checkNotNull(id, 'id');
    const _extra = <String, dynamic>{};
    final queryParameters = <String, dynamic>{};
    final _data = <String, dynamic>{};
    final _result = await _dio.request<Map<String, dynamic>>(
        '/product/queryMiNiProductDetail?id=$id',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'GET',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<MiNiDetail>.fromJson(
      _result.data,
      (json) => MiNiDetail.fromJson(json),
    );
    return value;
  }

  @override
  Future<BaseData<List<ShoppingCart>>> addShoppingCart(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>>('shoppingcart',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'POST',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<List<ShoppingCart>>.fromJson(
        _result.data,
        (json) => (json as List<dynamic>)
            .map<ShoppingCart>(
                (i) => ShoppingCart.fromJson(i as Map<String, dynamic>))
            .toList());
    return value;
  }

  @override
  Future<BaseData<List<ShoppingCart>>> getShoppingCart(tableId) async {
    ArgumentError.checkNotNull(tableId, 'tableId');
    const _extra = <String, dynamic>{};
    final queryParameters = <String, dynamic>{r'tableId': tableId};
    final _data = <String, dynamic>{};
    final _result = await _dio.request<Map<String, dynamic>>('shoppingcart',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'GET',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<List<ShoppingCart>>.fromJson(
        _result.data,
        (json) => (json as List<dynamic>)
            .map<ShoppingCart>(
                (i) => ShoppingCart.fromJson(i as Map<String, dynamic>))
            .toList());
    return value;
  }

  @override
  Future<BaseData<bool>> clearShoppingCart() async {
    const _extra = <String, dynamic>{};
    final queryParameters = <String, dynamic>{};
    final _data = <String, dynamic>{};
    final _result = await _dio.request<Map<String, dynamic>>(
        'shoppingcart/delCart',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'GET',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<bool>.fromJson(
      _result.data,
      (json) => json as bool,
    );
    return value;
  }

  @override
  Future<BaseData<List<ShoppingCart>>> shoppingCart1(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>>('shoppingcart',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'PUT',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<List<ShoppingCart>>.fromJson(
        _result.data,
        (json) => (json as List<dynamic>)
            .map<ShoppingCart>(
                (i) => ShoppingCart.fromJson(i as Map<String, dynamic>))
            .toList());
    return value;
  }

  @override
  Future<BaseData<List<ShoppingCart>>> shoppingCartSingle(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>>(
        'shoppingcart/single',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'PUT',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<List<ShoppingCart>>.fromJson(
        _result.data,
        (json) => (json as List<dynamic>)
            .map<ShoppingCart>(
                (i) => ShoppingCart.fromJson(i as Map<String, dynamic>))
            .toList());
    return value;
  }

  @override
  Future<BaseData<SettleOrderInfo>> getOrderInfo(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>>(
        'order/getOrderInfo',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'POST',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<SettleOrderInfo>.fromJson(
      _result.data,
      (json) => SettleOrderInfo.fromJson(json),
    );
    return value;
  }

  @override
  Future<BaseData<MinOrderInfo>> getOrderDetails(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>>(
        'order/getOrderDetail',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'POST',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<MinOrderInfo>.fromJson(
      _result.data,
      (json) => MinOrderInfo.fromJson(json),
    );
    return value;
  }

  @override
  Future<BaseData<List<Address>>> queryAddress() async {
    const _extra = <String, dynamic>{};
    final queryParameters = <String, dynamic>{};
    final _data = <String, dynamic>{};
    final _result = await _dio.request<Map<String, dynamic>>(
        'address/queryMemberAddress',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'GET',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<List<Address>>.fromJson(
        _result.data,
        (json) => (json as List<dynamic>)
            .map<Address>((i) => Address.fromJson(i as Map<String, dynamic>))
            .toList());
    return value;
  }

  @override
  Future<BaseData<DownOrder>> placeOrderFirst(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>>(
        'order/placeOrderFirst',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'POST',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<DownOrder>.fromJson(
      _result.data,
      (json) => DownOrder.fromJson(json),
    );
    return value;
  }

  @override
  Future<BaseData<DownOrder>> addOrder(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>>('order/addOrder',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'POST',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<DownOrder>.fromJson(
      _result.data,
      (json) => DownOrder.fromJson(json),
    );
    return value;
  }

  @override
  Future<BaseData<WxPay>> settlementWx(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>>('order/settlement',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'POST',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<WxPay>.fromJson(
      _result.data,
      (json) => WxPay.fromJson(json),
    );
    return value;
  }

  @override
  Future<BaseData<dynamic>> settlementApi(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>>('order/settlement',
        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
  Future<BaseData<dynamic>> queryStoreInfo1(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>>('store/getStore',
        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
  Future<BaseData<dynamic>> getParentInfo(tableId) async {
    ArgumentError.checkNotNull(tableId, 'tableId');
    const _extra = <String, dynamic>{};
    final queryParameters = <String, dynamic>{};
    final _data = <String, dynamic>{};
    final _result = await _dio.request<Map<String, dynamic>>(
        'order/getParentInfo?tableId=$tableId',
        queryParameters: queryParameters,
        options: RequestOptions(
            method: 'GET',
            headers: <String, dynamic>{},
            extra: _extra,
            baseUrl: baseUrl),
        data: _data);
    final value = BaseData<dynamic>.fromJson(
      _result.data,
      (json) => json as dynamic,
    );
    return value;
  }
}