Skip to content

Commit

Permalink
[#42] Refactor: RestaurantName 메소드명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SY2on committed Jan 20, 2024
1 parent 3acf351 commit 625f3ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import ssu.eatssu.domain.menu.dto.MenuResponse.MenuInformationResponse;
import ssu.eatssu.domain.menu.dto.MenuResponse.MenusInformationResponse;
import ssu.eatssu.domain.restaurant.entity.RestaurantName;
import ssu.eatssu.domain.restaurant.entity.RestaurantType;
import ssu.eatssu.global.handler.response.BaseException;
import ssu.eatssu.domain.menu.service.MenuService;

Expand All @@ -40,7 +41,7 @@ public class MenuController {
@GetMapping("")
public BaseResponse<List<MenuInformationResponse>> getMenus(
@RequestParam("restaurant") RestaurantName restaurantName) {
if (RestaurantName.isVariable(restaurantName)) {
if(RestaurantType.isVariableType(restaurantName)){
throw new BaseException(NOT_SUPPORT_RESTAURANT);
}
return BaseResponse.success(menuService.findMenusByRestaurant(restaurantName));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static boolean isFixedType(RestaurantName restaurantName) {
return FIXED.restaurants.contains(restaurantName);
}

public static boolean isVARIABLEType(RestaurantName restaurantName) {
public static boolean isVariableType(RestaurantName restaurantName) {
return VARIABLE.restaurants.contains(restaurantName);
}
}

0 comments on commit 625f3ac

Please sign in to comment.