|
|
|
// 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<BaseData> memberLogin(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>>(
|
|
|
|
'/auth/platform/memberLogin',
|
|
|
|
queryParameters: queryParameters,
|
|
|
|
options: RequestOptions(
|
|
|
|
method: 'POST',
|
|
|
|
headers: <String, dynamic>{},
|
|
|
|
extra: _extra,
|
|
|
|
baseUrl: baseUrl),
|
|
|
|
data: _data);
|
|
|
|
final value = BaseData.fromJson(_result.data);
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<BaseData> sendVerify(mobile) async {
|
|
|
|
ArgumentError.checkNotNull(mobile, 'mobile');
|
|
|
|
const _extra = <String, dynamic>{};
|
|
|
|
final queryParameters = <String, dynamic>{};
|
|
|
|
final _data = <String, dynamic>{};
|
|
|
|
final _result = await _dio.request<Map<String, dynamic>>(
|
|
|
|
'/auth/sendVerify/$mobile',
|
|
|
|
queryParameters: queryParameters,
|
|
|
|
options: RequestOptions(
|
|
|
|
method: 'GET',
|
|
|
|
headers: <String, dynamic>{},
|
|
|
|
extra: _extra,
|
|
|
|
baseUrl: baseUrl),
|
|
|
|
data: _data);
|
|
|
|
final value = BaseData.fromJson(_result.data);
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<BaseData> creditGoods(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>>(
|
|
|
|
'/creditGoods/list',
|
|
|
|
queryParameters: queryParameters,
|
|
|
|
options: RequestOptions(
|
|
|
|
method: 'POST',
|
|
|
|
headers: <String, dynamic>{},
|
|
|
|
extra: _extra,
|
|
|
|
baseUrl: baseUrl),
|
|
|
|
data: _data);
|
|
|
|
final value = BaseData.fromJson(_result.data);
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<BaseData> queryInfo() async {
|
|
|
|
const _extra = <String, dynamic>{};
|
|
|
|
final queryParameters = <String, dynamic>{};
|
|
|
|
final _data = <String, dynamic>{};
|
|
|
|
final _result = await _dio.request<Map<String, dynamic>>('/member/info',
|
|
|
|
queryParameters: queryParameters,
|
|
|
|
options: RequestOptions(
|
|
|
|
method: 'GET',
|
|
|
|
headers: <String, dynamic>{},
|
|
|
|
extra: _extra,
|
|
|
|
baseUrl: baseUrl),
|
|
|
|
data: _data);
|
|
|
|
final value = BaseData.fromJson(_result.data);
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<BaseData> editInfo(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>>('/member/edit',
|
|
|
|
queryParameters: queryParameters,
|
|
|
|
options: RequestOptions(
|
|
|
|
method: 'POST',
|
|
|
|
headers: <String, dynamic>{},
|
|
|
|
extra: _extra,
|
|
|
|
baseUrl: baseUrl),
|
|
|
|
data: _data);
|
|
|
|
final value = BaseData.fromJson(_result.data);
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<BaseData> signInInfo() async {
|
|
|
|
const _extra = <String, dynamic>{};
|
|
|
|
final queryParameters = <String, dynamic>{};
|
|
|
|
final _data = <String, dynamic>{};
|
|
|
|
final _result = await _dio.request<Map<String, dynamic>>(
|
|
|
|
'/member/signInInfo',
|
|
|
|
queryParameters: queryParameters,
|
|
|
|
options: RequestOptions(
|
|
|
|
method: 'GET',
|
|
|
|
headers: <String, dynamic>{},
|
|
|
|
extra: _extra,
|
|
|
|
baseUrl: baseUrl),
|
|
|
|
data: _data);
|
|
|
|
final value = BaseData.fromJson(_result.data);
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<BaseData> signIn() async {
|
|
|
|
const _extra = <String, dynamic>{};
|
|
|
|
final queryParameters = <String, dynamic>{};
|
|
|
|
final _data = <String, dynamic>{};
|
|
|
|
final _result = await _dio.request<Map<String, dynamic>>('/member/signIn',
|
|
|
|
queryParameters: queryParameters,
|
|
|
|
options: RequestOptions(
|
|
|
|
method: 'GET',
|
|
|
|
headers: <String, dynamic>{},
|
|
|
|
extra: _extra,
|
|
|
|
baseUrl: baseUrl),
|
|
|
|
data: _data);
|
|
|
|
final value = BaseData.fromJson(_result.data);
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<BaseData> recharge(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>>('/member/recharge',
|
|
|
|
queryParameters: queryParameters,
|
|
|
|
options: RequestOptions(
|
|
|
|
method: 'POST',
|
|
|
|
headers: <String, dynamic>{},
|
|
|
|
extra: _extra,
|
|
|
|
baseUrl: baseUrl),
|
|
|
|
data: _data);
|
|
|
|
final value = BaseData.fromJson(_result.data);
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<BaseData> receiveCoupon(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>>(
|
|
|
|
'/member/receiveCoupon',
|
|
|
|
queryParameters: queryParameters,
|
|
|
|
options: RequestOptions(
|
|
|
|
method: 'POST',
|
|
|
|
headers: <String, dynamic>{},
|
|
|
|
extra: _extra,
|
|
|
|
baseUrl: baseUrl),
|
|
|
|
data: _data);
|
|
|
|
final value = BaseData.fromJson(_result.data);
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
}
|