// GENERATED CODE - DO NOT MODIFY BY HAND part of 'retrofit_api.dart'; // ************************************************************************** // RetrofitGenerator // ************************************************************************** class _ApiService implements ApiService { _ApiService(this._dio, {this.baseUrl}) { ArgumentError.checkNotNull(_dio, '_dio'); baseUrl ??= 'http://192.168.10.236:8765/app'; } final Dio _dio; String baseUrl; @override Future memberLogin(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/auth/platform/memberLogin', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson(_result.data); return value; } @override Future sendVerify(mobile) async { ArgumentError.checkNotNull(mobile, 'mobile'); const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/auth/sendVerify/$mobile', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson(_result.data); return value; } @override Future creditGoods(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/creditGoods/list', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson(_result.data); return value; } @override Future queryInfo() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/member/info', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson(_result.data); return value; } @override Future editInfo(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/member/edit', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson(_result.data); return value; } @override Future signInInfo() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>( '/member/signInInfo', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson(_result.data); return value; } @override Future signIn() async { const _extra = {}; final queryParameters = {}; final _data = {}; final _result = await _dio.request>('/member/signIn', queryParameters: queryParameters, options: RequestOptions( method: 'GET', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson(_result.data); return value; } @override Future recharge(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>('/member/recharge', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson(_result.data); return value; } @override Future receiveCoupon(param) async { ArgumentError.checkNotNull(param, 'param'); const _extra = {}; final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); final _result = await _dio.request>( '/member/receiveCoupon', queryParameters: queryParameters, options: RequestOptions( method: 'POST', headers: {}, extra: _extra, baseUrl: baseUrl), data: _data); final value = BaseData.fromJson(_result.data); return value; } }