Skip to content

Commit

Permalink
[Chore] 캘린더: Operation(hidden=true) 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
sonshn committed Sep 5, 2024
1 parent f84f372 commit 5950768
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.umc.commonplant.domain.user.service.UserService;
import com.umc.commonplant.global.dto.JsonResponse;
import io.swagger.v3.core.util.Json;
import io.swagger.v3.oas.annotations.Operation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
Expand All @@ -27,6 +28,7 @@ public class CalendarController implements CalendarSwagger {
private final JwtService jwtService;
private final UserService userService;

@Operation(hidden = true)
@GetMapping
public ResponseEntity<JsonResponse> getCalendarByDate(@RequestParam("year") String year,
@RequestParam("month") String month,
Expand Down Expand Up @@ -56,6 +58,7 @@ public ResponseEntity<JsonResponse> getCalendarByMonth(@RequestParam("year") Str
return ResponseEntity.ok(new JsonResponse(true, 200, "getCalendarByMonth", monthlyCalendar));
}

@Operation(hidden = true)
@GetMapping("/place")
public ResponseEntity<JsonResponse> getCalendarByPlace() {
String uuid = jwtService.resolveToken();
Expand All @@ -66,6 +69,7 @@ public ResponseEntity<JsonResponse> getCalendarByPlace() {
return ResponseEntity.ok(new JsonResponse(true, 200, "getPlaceList", placeList));
}

@Operation(hidden = true)
@GetMapping("/place/plant")
public ResponseEntity<JsonResponse> getCalendarByPlaceAndPlant(@RequestParam("code") String code) {
String uuid = jwtService.resolveToken();
Expand All @@ -76,6 +80,7 @@ public ResponseEntity<JsonResponse> getCalendarByPlaceAndPlant(@RequestParam("co
return ResponseEntity.ok(new JsonResponse(true, 200, "getPlantList", plantList));
}

@Operation(hidden = true)
@GetMapping("/place/plant/memo")
public ResponseEntity<JsonResponse> getCalendarByPlaceAndPlantAndMemo(@RequestParam("code") String code,
@RequestParam("plant") Long plantIdx) {
Expand Down

0 comments on commit 5950768

Please sign in to comment.