- 전체 인라인 SVG를 Google Material Symbols Rounded로 교체 - Icon 컴포넌트 추가, cuisine-icons 매핑 리팩토링 - Tasteby 핀 로고 이미지 적용 (라이트/다크 버전) - 테이블링/캐치테이블 이름 유사도 체크 및 리셋 API 추가 - 어드민 페이지 리셋 버튼 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
70 lines
2.2 KiB
Java
70 lines
2.2 KiB
Java
package com.tasteby.mapper;
|
|
|
|
import com.tasteby.domain.Restaurant;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
@Mapper
|
|
public interface RestaurantMapper {
|
|
|
|
List<Restaurant> findAll(@Param("limit") int limit,
|
|
@Param("offset") int offset,
|
|
@Param("cuisine") String cuisine,
|
|
@Param("region") String region,
|
|
@Param("channel") String channel);
|
|
|
|
Restaurant findById(@Param("id") String id);
|
|
|
|
List<Map<String, Object>> findVideoLinks(@Param("restaurantId") String restaurantId);
|
|
|
|
void insertRestaurant(Restaurant r);
|
|
|
|
void updateRestaurant(Restaurant r);
|
|
|
|
void updateFields(@Param("id") String id, @Param("fields") Map<String, Object> fields);
|
|
|
|
void deleteVectors(@Param("id") String id);
|
|
|
|
void deleteReviews(@Param("id") String id);
|
|
|
|
void deleteFavorites(@Param("id") String id);
|
|
|
|
void deleteVideoRestaurants(@Param("id") String id);
|
|
|
|
void deleteRestaurant(@Param("id") String id);
|
|
|
|
void linkVideoRestaurant(@Param("id") String id,
|
|
@Param("videoId") String videoId,
|
|
@Param("restaurantId") String restaurantId,
|
|
@Param("foods") String foods,
|
|
@Param("evaluation") String evaluation,
|
|
@Param("guests") String guests);
|
|
|
|
String findIdByPlaceId(@Param("placeId") String placeId);
|
|
|
|
String findIdByName(@Param("name") String name);
|
|
|
|
List<Map<String, Object>> findChannelsByRestaurantIds(@Param("ids") List<String> ids);
|
|
|
|
List<Map<String, Object>> findFoodsByRestaurantIds(@Param("ids") List<String> ids);
|
|
|
|
void updateCuisineType(@Param("id") String id, @Param("cuisineType") String cuisineType);
|
|
|
|
void updateFoodsMentioned(@Param("id") String id, @Param("foods") String foods);
|
|
|
|
List<Restaurant> findWithoutTabling();
|
|
|
|
List<Restaurant> findWithoutCatchtable();
|
|
|
|
void resetTablingUrls();
|
|
|
|
void resetCatchtableUrls();
|
|
|
|
List<Map<String, Object>> findForRemapCuisine();
|
|
|
|
List<Map<String, Object>> findForRemapFoods();
|
|
}
|