// GENERATED CODE - DO NOT MODIFY BY HAND part of 'rest_client.dart'; // ************************************************************************** // RetrofitGenerator // ************************************************************************** // ignore_for_file: unnecessary_brace_in_string_interps class _RestClient implements RestClient { _RestClient(this._dio, {this.baseUrl}); final Dio _dio; String? baseUrl; @override Future> checkUpdate(version) async { const _extra = {}; final queryParameters = {r'version': version}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/app/checkUpdate', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> checkHardwareUpdate(ver, appVer) async { const _extra = {}; final queryParameters = { r'hardware_ver': ver, r'app_ver': appVer }; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/app/hardwareLastVer', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> onConnBt(shoes_mac, firmware_ver, hardware_ver, app_ver, os_name, os_ver, lang, phone_brand, phone_model) async { const _extra = {}; final queryParameters = { r'shoes_mac': shoes_mac, r'firmware_ver': firmware_ver, r'hardware_ver': hardware_ver, r'app_ver': app_ver, r'os_name': os_name, r'os_ver': os_ver, r'lang': lang, r'phone_brand': phone_brand, r'phone_model': phone_model }; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/app/onConnBt', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> logHardwareErr(shoes_mac, firmware_ver, hardware_ver, app_ver, err_code, err_msg, err_detail) async { const _extra = {}; final queryParameters = { r'shoes_mac': shoes_mac, r'firmware_ver': firmware_ver, r'hardware_ver': hardware_ver, r'app_ver': app_ver, r'err_code': err_code, r'err_msg': err_msg, r'err_detail': err_detail }; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/app/logHardwareErr', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getUserInfo(uid, {options}) async { const _extra = {}; final queryParameters = {r'id': uid}; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final newOptions = newRequestOptions(options); newOptions.extra.addAll(_extra); newOptions.headers.addAll(_dio.options.headers); newOptions.headers.addAll(_headers); final _result = await _dio.fetch>(newOptions.copyWith( method: 'GET', baseUrl: baseUrl ?? _dio.options.baseUrl, queryParameters: queryParameters, path: '/user/info') ..data = _data); final value = RespData.fromJson(_result.data!); return value; } @override Future> getUserInfoSelf() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/user/info', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getCountNameCard() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/user/countNameCard', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getSportIndex() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/sport/index', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getExerIndex() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/exer/index', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getSportDetail() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/sport/detail', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> postAddGame( gameId, score, level, record, mode, duration, consume, screen, jumpCount, crouchCount, stepCount, distance, opponent_id, is_cancel, play_group, movements, time) async { const _extra = {}; final queryParameters = { r'game_id': gameId, r'score': score, r'level': level, r'record': record, r'mode': mode, r'duration': duration, r'consume': consume, r'screen': screen, r'jump': jumpCount, r'crouch': crouchCount, r'step': stepCount, r'distance': distance, r'opponent_id': opponent_id, r'is_cancel': is_cancel, r'play_group': play_group, r'movements': movements, r'time': time }; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/gameRecord/addGame', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getSportTargetAll() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/sportTarget/all', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> setSportTarget(id) async { const _extra = {}; final queryParameters = {r'id': id}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/sportTarget/setold', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> setSportTargetToday(type, {consume, durationMinute}) async { const _extra = {}; final queryParameters = { r'type': type, r'consume': consume, r'duration_minute': durationMinute }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/sportTarget/set', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> setSportTargetCustom( duration, consume) async { const _extra = {}; final queryParameters = { r'duration': duration, r'consume': consume }; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/sportTarget/setCustom', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future delSportTarget() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>(_setStreamType( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/sportTarget/del', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = Resp.fromJson(_result.data!); return value; } @override Future> getSportTargetMy() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/sportTarget/my', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getSportTargetIndex() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/sportTarget/index', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getSportTargetRecord(year, month) async { const _extra = {}; final queryParameters = {r'year': year, r'month': month}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/sportTarget/records', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> sportTargetReward(id) async { const _extra = {}; final queryParameters = {r'id': id}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, contentType: 'application/x-www-form-urlencoded') .compose(_dio.options, '/sportTarget/reward', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getSportRecordListOneDay(date, {exceptDaily}) async { const _extra = {}; final queryParameters = { r'date': date, r'except_daily': exceptDaily }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/exerRecord/listOneDay', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getSportRecordListByDay(begin, end, {exceptDaily}) async { const _extra = {}; final queryParameters = { r'begin': begin, r'end': end, r'except_daily': exceptDaily }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/exerRecord/listByDay', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getSportRecordListByMonth(year, {exceptDaily}) async { const _extra = {}; final queryParameters = { r'year': year, r'except_daily': exceptDaily }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/exerRecord/listByMonth', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getSportRecordListByYear( {exceptDaily}) async { const _extra = {}; final queryParameters = {r'except_daily': exceptDaily}; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/exerRecord/listByYear', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getSportRecordHistory(year) async { const _extra = {}; final queryParameters = {r'year': year}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/exerRecord/history', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> getSportRecordList(gameId, {page}) async { const _extra = {}; final queryParameters = { r'game_id': gameId, r'page': page }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/gameRecord/list', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespPage.fromJson(_result.data!); return value; } @override Future> addDaily({step, distance, time, data}) async { const _extra = {}; final queryParameters = { r'step': step, r'distance': distance, r'time': time }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {'data': data}; _data.removeWhere((k, v) => v == null); final _result = await _dio.fetch>( _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, contentType: 'application/x-www-form-urlencoded') .compose(_dio.options, '/stepRecord/addDaily', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getStepRecordListOneDay(date) async { const _extra = {}; final queryParameters = {r'date': date}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/stepRecord/listOneDay', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getStepRecordListByDay(begin, end) async { const _extra = {}; final queryParameters = {r'begin': begin, r'end': end}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/stepRecord/listByDay', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getStepRecordListByMonth(year) async { const _extra = {}; final queryParameters = {r'year': year}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/stepRecord/listByMonth', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getStepRecordListByYear() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/stepRecord/listByYear', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getGameRecordSum() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/gameRecord/sum', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getGameRecord(gameId) async { const _extra = {}; final queryParameters = {r'id': gameId}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/gameRecord/game', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getRankInfo(gameId, {provinceId, cityId, districtId, scope}) async { const _extra = {}; final queryParameters = { r'game_id': gameId, r'province_id': provinceId, r'city_id': cityId, r'district_id': districtId, r'scope': scope }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/rank/game', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getForumIndex() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/index', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> getForumIndex2() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/index2', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> getPostList( {forumId, page, isGood, kw, isOfficial}) async { const _extra = {}; final queryParameters = { r'forumId': forumId, r'p': page, r'isGood': isGood, r'kw': kw, r'isOfficial': isOfficial }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/list', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespPage.fromJson(_result.data!); return value; } @override Future> getPostListByOfficial( {forumId, page, limit, sortBy, isOfficial}) async { const _extra = {}; final queryParameters = { r'forumId': forumId, r'p': page, r'limit': limit, r'sortBy': sortBy, r'isOfficial': isOfficial }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/listByOfficial', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespPage.fromJson(_result.data!); return value; } @override Future> getPostListByHot( {forumId, page, isOfficial, options}) async { const _extra = {}; final queryParameters = { r'forumId': forumId, r'p': page, r'isOfficial': isOfficial }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final newOptions = newRequestOptions(options); newOptions.extra.addAll(_extra); newOptions.headers.addAll(_dio.options.headers); newOptions.headers.addAll(_headers); final _result = await _dio.fetch>(newOptions.copyWith( method: 'GET', baseUrl: baseUrl ?? _dio.options.baseUrl, queryParameters: queryParameters, path: '/forum/listByHot') ..data = _data); final value = RespPage.fromJson(_result.data!); return value; } @override Future> getPostListByUser(uid, {forumId, page, sortBy, removeTop, isOfficial}) async { const _extra = {}; final queryParameters = { r'uid': uid, r'forumId': forumId, r'p': page, r'sortBy': sortBy, r'removeTop': removeTop, r'isOfficial': isOfficial }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/listByUser', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespPage.fromJson(_result.data!); return value; } @override Future> getPostListByFollow(uid, {forumId, page, limit, testuid, sortBy, isOfficial, options}) async { const _extra = {}; final queryParameters = { r'uid': uid, r'forumId': forumId, r'p': page, r'limit': limit, r'testuid': testuid, r'sortBy': sortBy, r'isOfficial': isOfficial }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final newOptions = newRequestOptions(options); newOptions.extra.addAll(_extra); newOptions.headers.addAll(_dio.options.headers); newOptions.headers.addAll(_headers); final _result = await _dio.fetch>(newOptions.copyWith( method: 'GET', baseUrl: baseUrl ?? _dio.options.baseUrl, queryParameters: queryParameters, path: '/forum/listByFollow') ..data = _data); final value = RespPage.fromJson(_result.data!); return value; } @override Future> getPostDetail(subjectId) async { const _extra = {}; final queryParameters = {r'subjectId': subjectId}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/subjectDetail', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getPostComments(subjectId, {page, sortBy}) async { const _extra = {}; final queryParameters = { r'subjectId': subjectId, r'p': page, r'sortBy': sortBy }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/comments', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespPage.fromJson(_result.data!); return value; } @override Future> getPostCommentSubs(parentCommentId, {page, sortBy}) async { const _extra = {}; final queryParameters = { r'parentCommentId': parentCommentId, r'p': page, r'sortBy': sortBy }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/subComments', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespPage.fromJson(_result.data!); return value; } @override Future> getPostCommentsFromId(commentId, {limit, sortBy}) async { const _extra = {}; final queryParameters = { r'commentId': commentId, r'limit': limit, r'sortBy': sortBy }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/commentsFromId', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> getSearchWords() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/hotSearchWords', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> postForumLike(objectId, fieldName) async { const _extra = {}; final queryParameters = { r'objectId': objectId, r'fieldName': fieldName }; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/like', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> postForumUnLike(objectId, fieldName) async { const _extra = {}; final queryParameters = { r'objectId': objectId, r'fieldName': fieldName }; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/unlike', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> postDelSubject(subjectId) async { const _extra = {}; final queryParameters = {r'subjectId': subjectId}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/delSubject', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> postDelComment(commentId) async { const _extra = {}; final queryParameters = {r'commentId': commentId}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/delComment', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> postForumReport( {subjectId, commentId, content, userId}) async { const _extra = {}; final queryParameters = { r'subjectId': subjectId, r'commentId': commentId, r'content': content, r'userId': userId }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/report', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> postForumBlockUser(uid) async { const _extra = {}; final queryParameters = {r'uid': uid}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/blockUser', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> postForumUnBlockUser(uid) async { const _extra = {}; final queryParameters = {r'uid': uid}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/unblockUser', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> getMyBlockUsers() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/myBlockUsers', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> postForumBlockObject(objectId, forName) async { const _extra = {}; final queryParameters = { r'objectId': objectId, r'for': forName }; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/blockObject', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> postForumComment(subjectId, content, {parentCommentId, toCommentId}) async { const _extra = {}; final queryParameters = { r'subjectId': subjectId, r'content': content, r'parentCommentId': parentCommentId, r'toCommentId': toCommentId }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/postComment', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future>> postForum(forumId, content, {images, quoteSubjectId, quoteCommentId, quoteData, cancelToken}) async { const _extra = {}; final queryParameters = { r'forumId': forumId, r'content': content, r'images': images, r'quoteSubjectId': quoteSubjectId, r'quoteCommentId': quoteCommentId, r'quoteData': quoteData }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/post', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData>.fromJson(_result.data!); return value; } @override Future> setUserTopSubjects(subjectIdList) async { const _extra = {}; final queryParameters = {r'subjectIdList': subjectIdList}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/setUserTopSubjects', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> unsetUserTopSubjects(subjectIdList) async { const _extra = {}; final queryParameters = {r'subjectIdList': subjectIdList}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/unsetUserTopSubjects', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getPostUserTopSubjects(uid, {forumId, page, sortBy}) async { const _extra = {}; final queryParameters = { r'uid': uid, r'forumId': forumId, r'p': page, r'sortBy': sortBy }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/userTopSubjects', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> userFollow({uid, groupId, groupName}) async { const _extra = {}; final queryParameters = { r'uid': uid, r'groupId': groupId, r'groupName': groupName }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/follow', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> userUnFollow({uid}) async { const _extra = {}; final queryParameters = {r'uid': uid}; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/unfollow', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> userIgnoreFollow({uid}) async { const _extra = {}; final queryParameters = {r'uid': uid}; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/ignoreFollow', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> userRelation({uid}) async { const _extra = {}; final queryParameters = {r'uid': uid}; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/UserRelation', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> userFollowList( {groupId, kw, page, limit = 50}) async { const _extra = {}; final queryParameters = { r'groupId': groupId, r'kw': kw, r'p': page, r'limit': limit }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/followList', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> userFansList( {groupId, kw, page, limit = 50}) async { const _extra = {}; final queryParameters = { r'groupId': groupId, r'kw': kw, r'p': page, r'limit': limit }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/fansList', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> userFriends( {groupId, kw, page, limit = 50, test}) async { const _extra = {}; final queryParameters = { r'groupId': groupId, r'kw': kw, r'p': page, r'limit': limit, r'test': test }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/friends', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> userFriendsTest( {groupId, kw, page, limit = 50, test}) async { const _extra = {}; final queryParameters = { r'groupId': groupId, r'kw': kw, r'p': page, r'limit': limit, r'test': test }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/forum/friends', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> userSearch({kw, page, limit = 20}) async { const _extra = {}; final queryParameters = { r'kw': kw, r'p': page, r'limit': limit }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/user/search', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespPage.fromJson(_result.data!); return value; } @override Future> getNewFriendCode({forever, forceUpdate}) async { const _extra = {}; final queryParameters = { r'forever': forever, r'forceUpate': forceUpdate }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/user/newFriendCode', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getNewFriend(code) async { const _extra = {}; final queryParameters = {r'code': code}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/user/newFriend', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> shareForwardSubject( subjectId, userId) async { const _extra = {}; final queryParameters = { r'subject_id': subjectId, r'user_id': userId }; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/share/forwardSubject', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getMessageForPoll({curId}) async { const _extra = {}; final queryParameters = {r'cur_id': curId}; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/message/receive', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getFriendRequest() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/user/FetchFriendsRequest', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> postRejectFriend(uid) async { const _extra = {}; final queryParameters = {r'uid': uid}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/user/RejectFriend', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> postAcceptFriend(uid) async { const _extra = {}; final queryParameters = {r'uid': uid}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/user/AcceptFriend', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> postIsFriend(uid) async { const _extra = {}; final queryParameters = {r'uid': uid}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/user/isFriend', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getChatIndex() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/chat/index', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> getChatUser(userId, {beginId}) async { const _extra = {}; final queryParameters = { r'user_id': userId, r'begin_id': beginId }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/chat/user', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> postChatSend(userId, type, data) async { const _extra = {}; final queryParameters = { r'user_id': userId, r'type': type, r'data': data }; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/chat/send', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> postChatUpload(file) async { const _extra = {}; final queryParameters = {}; final _headers = {r'content-type': 'multipart/form-data'}; _headers.removeWhere((k, v) => v == null); final _data = FormData(); _data.files.add(MapEntry( 'file', MultipartFile.fromFileSync(file.path, filename: file.path.split(Platform.pathSeparator).last))); final _result = await _dio.fetch>( _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, contentType: 'multipart/form-data') .compose(_dio.options, '/chat/upload', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getChatUserInfo(userIds) async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {'user_ids': userIds}; final _result = await _dio.fetch>( _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, contentType: 'application/x-www-form-urlencoded') .compose(_dio.options, '/chat/info', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> getshareCreateSport(period, weight) async { const _extra = {}; final queryParameters = { r'period': period, r'weight': weight }; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/share/createSport', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getshareForwardSport(hash, userId) async { const _extra = {}; final queryParameters = {r'h': hash, r'user_id': userId}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/share/forwardSport', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getInformList({page}) async { const _extra = {}; final queryParameters = {r'p': page}; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/inform/list', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespPage.fromJson(_result.data!); return value; } @override Future> postInformRead(informId) async { const _extra = {}; final queryParameters = {r'informId': informId}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/inform/read', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getNoticeList( {type, markread = "currpage", page, read, isMsg = "1"}) async { const _extra = {}; final queryParameters = { r'type': type, r'markread': markread, r'p': page, r'read': read, r'isMsg': isMsg }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/notice/list', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespPage.fromJson(_result.data!); return value; } @override Future> getNoticeCount(type, read, {isMsg = "1"}) async { const _extra = {}; final queryParameters = { r'type': type, r'read': read, r'isMsg': isMsg }; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/notice/count', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> postNoticeRead(noticeId) async { const _extra = {}; final queryParameters = {r'noticeId': noticeId}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/notice/read', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getFeedbackTypes() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/feedback/types', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> getFeedbackChat({groupId, typeId}) async { const _extra = {}; final queryParameters = { r'groupId': groupId, r'typeId': typeId }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/feedback/myChats', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> postFeedback(typeId, content, {images, extra}) async { const _extra = {}; final queryParameters = { r'typeId': typeId, r'content': content, r'images': images, r'extra': extra }; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/feedback/post', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> mediaUp4Feedback(file) async { const _extra = {}; final queryParameters = {}; final _headers = {r'content-type': 'multipart/form-data'}; _headers.removeWhere((k, v) => v == null); final _data = FormData(); _data.files.add(MapEntry( 'media', MultipartFile.fromFileSync(file.path, filename: file.path.split(Platform.pathSeparator).last))); final _result = await _dio.fetch>( _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, contentType: 'multipart/form-data') .compose(_dio.options, '/media/Up4Feedback', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> mediaUp4Subject(file, {srcType, subjectId, cancelToken}) async { const _extra = {}; final queryParameters = { r'srcType': srcType, r'subjectId': subjectId }; queryParameters.removeWhere((k, v) => v == null); final _headers = {r'content-type': 'multipart/form-data'}; _headers.removeWhere((k, v) => v == null); final _data = FormData(); _data.files.add(MapEntry( 'media', MultipartFile.fromFileSync(file.path, filename: file.path.split(Platform.pathSeparator).last))); final _result = await _dio.fetch>( _setStreamType>(Options( method: 'POST', headers: _headers, extra: _extra, contentType: 'multipart/form-data') .compose(_dio.options, '/media/Up4Subject', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getGameAll() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/game/all', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future getGameById(id) async { const _extra = {}; final queryParameters = {r'id': id}; final _headers = {}; final _data = {}; final _result = await _dio.fetch(_setStreamType( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/game/all', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = _result.data; return value; } @override Future> getRankInfoAll() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/rank/all', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespList.fromJson(_result.data!); return value; } @override Future> getRankGameInfo(id, {scope}) async { const _extra = {}; final queryParameters = {r'game_id': id, r'scope': scope}; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/rank/game', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getRankSportInfo(id, {scope}) async { const _extra = {}; final queryParameters = {r'rank_id': id, r'scope': scope}; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/rank/sport', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getShopIndex() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/shop/item', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> getScoreIndex() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/score/record', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future>> buyItem(id) async { const _extra = {}; final queryParameters = {r'item_id': id}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/shop/buy', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData>.fromJson(_result.data!); return value; } @override Future>> jogAddRecord( begin, end, distance, step, consume, track, stepInfo, altitudeInfo, kmDurationInfo, thumb, media) async { const _extra = {}; final queryParameters = {}; final _headers = {r'content-type': 'multipart/form-data'}; _headers.removeWhere((k, v) => v == null); final _data = FormData(); _data.fields.add(MapEntry('begin', begin.toString())); _data.fields.add(MapEntry('end', end.toString())); _data.fields.add(MapEntry('distance', distance.toString())); _data.fields.add(MapEntry('step', step.toString())); _data.fields.add(MapEntry('consume', consume.toString())); _data.fields.add(MapEntry('track', track)); _data.fields.add(MapEntry('step_info', stepInfo)); _data.fields.add(MapEntry('altitude_info', altitudeInfo)); _data.fields.add(MapEntry('km_duration_info', kmDurationInfo)); _data.fields.add(MapEntry('track_thumb', thumb)); _data.files.add(MapEntry( 'media', MultipartFile.fromFileSync(media.path, filename: media.path.split(Platform.pathSeparator).last))); final _result = await _dio.fetch>( _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, contentType: 'multipart/form-data') .compose(_dio.options, '/jog/addRecord', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData>.fromJson(_result.data!); return value; } @override Future> jogDelRecord(id) async { const _extra = {}; final queryParameters = {r'id': id}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/jog/delRecord', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> jogCopyRecord(id) async { const _extra = {}; final queryParameters = {r'id': id}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'POST', headers: _headers, extra: _extra) .compose(_dio.options, '/jog/copyRecord', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> jogShowRecord(id) async { const _extra = {}; final queryParameters = {r'id': id}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/jog/show', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> jogListOneYear(year) async { const _extra = {}; final queryParameters = {r'year': year}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/jog/listOneYear', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> jogListByDay(begin, end) async { const _extra = {}; final queryParameters = {r'begin': begin, r'end': end}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/jog/listByDay', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> jogListByMonth(year) async { const _extra = {}; final queryParameters = {r'year': year}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/jog/listByMonth', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future> jogListByYear() async { const _extra = {}; final queryParameters = {}; final _headers = {}; final _data = {}; final _result = await _dio.fetch>( _setStreamType>( Options(method: 'GET', headers: _headers, extra: _extra) .compose(_dio.options, '/jog/listByYear', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData.fromJson(_result.data!); return value; } @override Future>> jogSetting({setting}) async { const _extra = {}; final queryParameters = {}; queryParameters.removeWhere((k, v) => v == null); final _headers = {}; final _data = {'setting': setting}; _data.removeWhere((k, v) => v == null); final _result = await _dio.fetch>( _setStreamType>>(Options( method: 'POST', headers: _headers, extra: _extra, contentType: 'application/x-www-form-urlencoded') .compose(_dio.options, '/jog/setting', queryParameters: queryParameters, data: _data) .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl))); final value = RespData>.fromJson(_result.data!); return value; } RequestOptions newRequestOptions(Object? options) { if (options is RequestOptions) { return options as RequestOptions; } if (options is Options) { return RequestOptions( method: options.method, sendTimeout: options.sendTimeout, receiveTimeout: options.receiveTimeout, extra: options.extra, headers: options.headers, responseType: options.responseType, contentType: options.contentType.toString(), validateStatus: options.validateStatus, receiveDataWhenStatusError: options.receiveDataWhenStatusError, followRedirects: options.followRedirects, maxRedirects: options.maxRedirects, requestEncoder: options.requestEncoder, responseDecoder: options.responseDecoder, path: '', ); } return RequestOptions(path: ''); } RequestOptions _setStreamType(RequestOptions requestOptions) { if (T != dynamic && !(requestOptions.responseType == ResponseType.bytes || requestOptions.responseType == ResponseType.stream)) { if (T == String) { requestOptions.responseType = ResponseType.plain; } else { requestOptions.responseType = ResponseType.json; } } return requestOptions; } }