251212_01_ENH : 프로젝트 정보 저장 api연동 테스트 완료
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.kri.contact.server.controller;
|
||||
|
||||
import com.kri.common.webmvc.RequestUserContext;
|
||||
import com.kri.contact.server.common.enums.ResultCodeType;
|
||||
import com.kri.contact.server.dto.ResultCodeDto;
|
||||
import com.kri.contact.server.service.ResultCodeService;
|
||||
import com.kri.contact.server.service.SystemEventLogService;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/v1/result-code")
|
||||
@RequiredArgsConstructor
|
||||
@Tag(name = "Result Code", description = "결과 코드 API")
|
||||
public class ResultCodeController {
|
||||
|
||||
private final SystemEventLogService systemEventLogService;
|
||||
private final ResultCodeService resultCodeService;
|
||||
|
||||
@GetMapping("/{prjctIdx}")
|
||||
public List<ResultCodeDto> getResultCodeList(
|
||||
@PathVariable long prjctIdx,
|
||||
@RequestParam(required = false) ResultCodeType resultCdTy
|
||||
){
|
||||
return resultCodeService.getResultCode(prjctIdx, resultCdTy);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user