휴가 수정
This commit is contained in:
parent
bb886bf0cf
commit
6456a6d1c8
@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import io.company.localhost.common.annotation.ReqMap;
|
||||
import io.company.localhost.common.dto.ApiResponse;
|
||||
import io.company.localhost.common.dto.MapDto;
|
||||
import io.company.localhost.service.commoncodService;
|
||||
import io.company.localhost.service.localvacaService; // 서비스 클래스 경로 수정
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@ -40,13 +41,12 @@ public class VacationController {
|
||||
localVacaService.insertVacation(request);
|
||||
}
|
||||
|
||||
// 성공적으로 저장된 경우 응답 반환
|
||||
return ApiResponse.ok("모든 휴가가 성공적으로 저장되었습니다.");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* ✅ 특정 연월에 대한 휴가 데이터 조회
|
||||
* 특정 연월에 대한 휴가 데이터 조회
|
||||
*/
|
||||
@GetMapping("/list/{year}/{month}")
|
||||
public List<MapDto> getVacations(@PathVariable("year") int year, @PathVariable("month") int month) {
|
||||
@ -54,7 +54,7 @@ public class VacationController {
|
||||
}
|
||||
|
||||
/**
|
||||
* ✅ 특정 연월에 대한 공휴일 데이터 조회
|
||||
* 특정 연월에 대한 공휴일 데이터 조회
|
||||
*/
|
||||
@GetMapping("/{year}/{month}")
|
||||
public List<MapDto> getHolidays(@PathVariable("year") int year, @PathVariable("month") int month) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user