feat: 초기 프로젝트 설정 및 LunchPick 앱 구현
LunchPick(오늘 뭐 먹Z?) Flutter 앱의 초기 구현입니다. 주요 기능: - 네이버 지도 연동 맛집 추가 - 랜덤 메뉴 추천 시스템 - 날씨 기반 거리 조정 - 방문 기록 관리 - Bluetooth 맛집 공유 - 다크모드 지원 기술 스택: - Flutter 3.8.1+ - Riverpod 상태 관리 - Hive 로컬 DB - Clean Architecture 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
21
lib/domain/repositories/weather_repository.dart
Normal file
21
lib/domain/repositories/weather_repository.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:lunchpick/domain/entities/weather_info.dart';
|
||||
|
||||
abstract class WeatherRepository {
|
||||
/// 현재 위치의 날씨 정보를 가져옵니다
|
||||
Future<WeatherInfo> getCurrentWeather({
|
||||
required double latitude,
|
||||
required double longitude,
|
||||
});
|
||||
|
||||
/// 캐시된 날씨 정보를 가져옵니다
|
||||
Future<WeatherInfo?> getCachedWeather();
|
||||
|
||||
/// 날씨 정보를 캐시에 저장합니다
|
||||
Future<void> cacheWeatherInfo(WeatherInfo weatherInfo);
|
||||
|
||||
/// 날씨 캐시를 삭제합니다
|
||||
Future<void> clearWeatherCache();
|
||||
|
||||
/// 날씨 정보 업데이트가 필요한지 확인합니다
|
||||
Future<bool> isWeatherUpdateNeeded();
|
||||
}
|
||||
Reference in New Issue
Block a user