0417 0022

更新
This commit is contained in:
spasolreisa
2026-04-17 00:22:43 +08:00
parent 9ce601aa8d
commit fed18d264a
12 changed files with 1924 additions and 210 deletions

View File

@@ -283,4 +283,28 @@ class UserService {
throw _getErrorMessage(e);
}
}
// 上传 Sega 成绩数据
static Future<Map<String, dynamic>> uploadSegaRating(
String token,
String segaId,
Map<String, dynamic> segaResult,
) async {
try {
final res = await _dio.post(
'$baseUrl/api/union/segaReisaRating',
queryParameters: {
"segaId": segaId,
},
data: segaResult,
options: Options(
headers: {
"Authorization": token,
},
),
);
return Map<String, dynamic>.from(res.data);
} on DioException catch (e) {
throw _getErrorMessage(e);
}
}
}