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.
188 lines
6.0 KiB
188 lines
6.0 KiB
4 years ago
|
// 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(paramt) async {
|
||
|
ArgumentError.checkNotNull(paramt, 'paramt');
|
||
|
const _extra = <String, dynamic>{};
|
||
|
final queryParameters = <String, dynamic>{};
|
||
|
final _data = <String, dynamic>{};
|
||
|
_data.addAll(paramt ?? <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(paramt) async {
|
||
|
ArgumentError.checkNotNull(paramt, 'paramt');
|
||
|
const _extra = <String, dynamic>{};
|
||
|
final queryParameters = <String, dynamic>{};
|
||
|
final _data = <String, dynamic>{};
|
||
|
_data.addAll(paramt ?? <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(paramt) async {
|
||
|
ArgumentError.checkNotNull(paramt, 'paramt');
|
||
|
const _extra = <String, dynamic>{};
|
||
|
final queryParameters = <String, dynamic>{};
|
||
|
final _data = <String, dynamic>{};
|
||
|
_data.addAll(paramt ?? <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(paramt) async {
|
||
|
ArgumentError.checkNotNull(paramt, 'paramt');
|
||
|
const _extra = <String, dynamic>{};
|
||
|
final queryParameters = <String, dynamic>{};
|
||
|
final _data = <String, dynamic>{};
|
||
|
_data.addAll(paramt ?? <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(paramt) async {
|
||
|
ArgumentError.checkNotNull(paramt, 'paramt');
|
||
|
const _extra = <String, dynamic>{};
|
||
|
final queryParameters = <String, dynamic>{};
|
||
|
final _data = <String, dynamic>{};
|
||
|
_data.addAll(paramt ?? <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;
|
||
|
}
|
||
|
}
|