Enhance: Google Photos integration, refinement of Schedule/Todo lists and API fixes

This commit is contained in:
kihong.kim
2026-02-01 01:05:33 +09:00
parent c614c883d4
commit 5fa24d61c9
7 changed files with 56 additions and 40 deletions

View File

@@ -78,13 +78,13 @@ class PhotoService {
}
Future<String> getGoogleAuthUrl() async {
final data = await _client.get("${ApiConfig.photos}/auth/url");
final data = await _client.getMap("${ApiConfig.photos}/auth/url");
return data["url"] as String;
}
Future<bool> getGoogleStatus() async {
try {
final data = await _client.get("${ApiConfig.photos}/status");
final data = await _client.getMap("${ApiConfig.photos}/status");
return data["connected"] as bool? ?? false;
} catch (e) {
return false;
@@ -92,6 +92,6 @@ class PhotoService {
}
Future<void> disconnectGoogle() async {
await _client.get("${ApiConfig.photos}/disconnect");
await _client.getMap("${ApiConfig.photos}/disconnect");
}
}