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:
JiWoong Sul
2025-07-30 19:03:28 +09:00
commit 85fde36157
237 changed files with 30953 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
import 'package:lunchpick/domain/entities/recommendation_record.dart';
abstract class RecommendationRepository {
/// 모든 추천 기록을 가져옵니다
Future<List<RecommendationRecord>> getAllRecommendationRecords();
/// 특정 맛집의 추천 기록을 가져옵니다
Future<List<RecommendationRecord>> getRecommendationsByRestaurantId(String restaurantId);
/// 날짜별 추천 기록을 가져옵니다
Future<List<RecommendationRecord>> getRecommendationsByDate(DateTime date);
/// 날짜 범위로 추천 기록을 가져옵니다
Future<List<RecommendationRecord>> getRecommendationsByDateRange({
required DateTime startDate,
required DateTime endDate,
});
/// 새로운 추천 기록을 추가합니다
Future<void> addRecommendationRecord(RecommendationRecord record);
/// 추천 기록을 업데이트합니다
Future<void> updateRecommendationRecord(RecommendationRecord record);
/// 추천 기록을 삭제합니다
Future<void> deleteRecommendationRecord(String id);
/// 추천 후 방문 여부를 업데이트합니다
Future<void> markAsVisited(String recommendationId);
/// 오늘의 추천 횟수를 가져옵니다
Future<int> getTodayRecommendationCount();
/// 추천 기록을 스트림으로 감시합니다
Stream<List<RecommendationRecord>> watchRecommendationRecords();
/// 월별 추천 통계를 가져옵니다
Future<Map<String, int>> getMonthlyRecommendationStats(int year, int month);
}

View File

@@ -0,0 +1,49 @@
import 'package:lunchpick/domain/entities/restaurant.dart';
abstract class RestaurantRepository {
/// 모든 맛집 목록을 가져옵니다
Future<List<Restaurant>> getAllRestaurants();
/// 특정 맛집을 ID로 가져옵니다
Future<Restaurant?> getRestaurantById(String id);
/// 새로운 맛집을 추가합니다
Future<void> addRestaurant(Restaurant restaurant);
/// 맛집 정보를 업데이트합니다
Future<void> updateRestaurant(Restaurant restaurant);
/// 맛집을 삭제합니다
Future<void> deleteRestaurant(String id);
/// 카테고리별로 맛집을 가져옵니다
Future<List<Restaurant>> getRestaurantsByCategory(String category);
/// 모든 카테고리 목록을 가져옵니다
Future<List<String>> getAllCategories();
/// 맛집 목록을 스트림으로 감시합니다
Stream<List<Restaurant>> watchRestaurants();
/// 맛집 방문일을 업데이트합니다
Future<void> updateLastVisitDate(String restaurantId, DateTime visitDate);
/// 거리 내의 맛집을 가져옵니다
Future<List<Restaurant>> getRestaurantsWithinDistance({
required double userLatitude,
required double userLongitude,
required double maxDistanceInMeters,
});
/// 최근 n일 이내에 방문하지 않은 맛집을 가져옵니다
Future<List<Restaurant>> getRestaurantsNotVisitedInDays(int days);
/// 검색어로 맛집을 검색합니다
Future<List<Restaurant>> searchRestaurants(String query);
/// 네이버 지도 URL로부터 맛집을 추가합니다
Future<Restaurant> addRestaurantFromUrl(String url);
/// 네이버 Place ID로 맛집을 찾습니다
Future<Restaurant?> getRestaurantByNaverPlaceId(String naverPlaceId);
}

View File

@@ -0,0 +1,60 @@
import 'package:lunchpick/domain/entities/user_settings.dart';
abstract class SettingsRepository {
/// 사용자 설정 전체를 가져옵니다
Future<UserSettings> getUserSettings();
/// 사용자 설정을 업데이트합니다
Future<void> updateUserSettings(UserSettings settings);
/// 재방문 금지 일수를 가져옵니다
Future<int> getDaysToExclude();
/// 재방문 금지 일수를 설정합니다
Future<void> setDaysToExclude(int days);
/// 우천시 최대 거리를 가져옵니다
Future<int> getMaxDistanceRainy();
/// 우천시 최대 거리를 설정합니다
Future<void> setMaxDistanceRainy(int meters);
/// 평상시 최대 거리를 가져옵니다
Future<int> getMaxDistanceNormal();
/// 평상시 최대 거리를 설정합니다
Future<void> setMaxDistanceNormal(int meters);
/// 알림 시간 설정을 가져옵니다 (분 단위)
Future<int> getNotificationDelayMinutes();
/// 알림 시간을 설정합니다 (분 단위)
Future<void> setNotificationDelayMinutes(int minutes);
/// 알림 활성화 여부를 가져옵니다
Future<bool> isNotificationEnabled();
/// 알림 활성화 여부를 설정합니다
Future<void> setNotificationEnabled(bool enabled);
/// 다크모드 설정을 가져옵니다
Future<bool> isDarkModeEnabled();
/// 다크모드를 설정합니다
Future<void> setDarkModeEnabled(bool enabled);
/// 첫 실행 여부를 확인합니다
Future<bool> isFirstRun();
/// 첫 실행 상태를 업데이트합니다
Future<void> setFirstRun(bool isFirst);
/// 모든 설정을 초기화합니다
Future<void> resetSettings();
/// 설정 변경사항을 스트림으로 감시합니다
Stream<Map<String, dynamic>> watchSettings();
/// UserSettings 변경사항을 스트림으로 감시합니다
Stream<UserSettings> watchUserSettings();
}

View File

@@ -0,0 +1,42 @@
import 'package:lunchpick/domain/entities/visit_record.dart';
abstract class VisitRepository {
/// 모든 방문 기록을 가져옵니다
Future<List<VisitRecord>> getAllVisitRecords();
/// 특정 맛집의 방문 기록을 가져옵니다
Future<List<VisitRecord>> getVisitRecordsByRestaurantId(String restaurantId);
/// 특정 날짜의 방문 기록을 가져옵니다
Future<List<VisitRecord>> getVisitRecordsByDate(DateTime date);
/// 날짜 범위로 방문 기록을 가져옵니다
Future<List<VisitRecord>> getVisitRecordsByDateRange({
required DateTime startDate,
required DateTime endDate,
});
/// 새로운 방문 기록을 추가합니다
Future<void> addVisitRecord(VisitRecord visitRecord);
/// 방문 기록을 업데이트합니다
Future<void> updateVisitRecord(VisitRecord visitRecord);
/// 방문 기록을 삭제합니다
Future<void> deleteVisitRecord(String id);
/// 방문 확인 상태를 업데이트합니다
Future<void> confirmVisit(String visitRecordId);
/// 방문 기록을 스트림으로 감시합니다
Stream<List<VisitRecord>> watchVisitRecords();
/// 특정 맛집의 마지막 방문일을 가져옵니다
Future<DateTime?> getLastVisitDate(String restaurantId);
/// 월별 방문 통계를 가져옵니다
Future<Map<String, int>> getMonthlyVisitStats(int year, int month);
/// 카테고리별 방문 통계를 가져옵니다
Future<Map<String, int>> getCategoryVisitStats();
}

View 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();
}