package com.kri.contact.server.controller; import com.kri.contact.server.dto.progress.ProgressDateResponseDto; import com.kri.contact.server.dto.progress.ProgressSearchRequestDto; import com.kri.contact.server.dto.progress.ProgressUserResponseDto; import com.kri.contact.server.service.ProgressService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import java.util.List; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/api/v1/progress") @RequiredArgsConstructor @Tag(name = "Progress", description = "진행 현황 API") public class ProgressController { private final ProgressService progressService; @Operation(summary = "사용자별 컨택 진행 현황") @PostMapping("/user/{prjctIdx}/{eventTy}") public List getUserProgress( @PathVariable Long prjctIdx, @PathVariable Short eventTy, @RequestBody(required = false) ProgressSearchRequestDto request ) { return progressService.getUserProgress(prjctIdx, eventTy, request); } @Operation(summary = "날짜별 전체 컨택 진행 현황") @PostMapping("/date/{prjctIdx}/{eventTy}") public List getDateProgress( @PathVariable Long prjctIdx, @PathVariable Short eventTy, @RequestBody(required = false) ProgressSearchRequestDto request ) { return progressService.getDateProgress(prjctIdx, eventTy, request); } @Operation(summary = "날짜별 마지막 컨택 진행 현황") @PostMapping("/last-date/{prjctIdx}/{eventTy}") public List getLastDateProgress( @PathVariable Long prjctIdx, @PathVariable Short eventTy, @RequestBody(required = false) ProgressSearchRequestDto request ) { return progressService.getLastDateProgress(prjctIdx, eventTy, request); } }