메뉴 API 영문명 로직 추가
This commit is contained in:
@@ -14,6 +14,7 @@ import java.util.List;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Tag(name = "메뉴 조회", description = "메뉴 조회 API")
|
||||
@@ -68,9 +69,10 @@ public class MyMenuApiController {
|
||||
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||
})
|
||||
@GetMapping
|
||||
public ApiResponseDto<List<MyMenuDto.Basic>> getFindAllByRole() {
|
||||
public ApiResponseDto<List<MyMenuDto.Basic>> getFindAllByRole(
|
||||
@RequestParam(required = false) String locale) {
|
||||
UserUtil userUtil = new UserUtil();
|
||||
String role = userUtil.getRole();
|
||||
return ApiResponseDto.ok(myMenuService.getFindByRole(role));
|
||||
return ApiResponseDto.ok(myMenuService.getFindByRole(role, locale));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user