// 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>> findMiNiGroupList(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'product/findMiNiGroupList', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData>.fromJson( _result.data, (json) => (json as List) .map( (i) => FindMiNiGroupList.fromJson(i as Map)) .toList()); return value; } @override Future> miNiDetail(id) async { ArgumentError.checkNotNull(id, 'id'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/product/queryMiNiProductDetail?id=$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => MiNiDetail.fromJson(json), ); return value; } @override Future> shoppingCart(param, header) async { ArgumentError.checkNotNull(param, 'param'); ArgumentError.checkNotNull(header, 'header'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('shoppingcart', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => ShoppingCart.fromJson(json), ); return value; } @override Future> getOrderInfo(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( 'order/getOrderInfo', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson( _result.data, (json) => SettleOrderInfo.fromJson(json), ); return value; } }