test
This commit is contained in:
@@ -324,4 +324,21 @@ public class CommonCodeApiController {
|
|||||||
public ApiResponseDto<List<CodeDto>> getTypeCode(@PathVariable String type) {
|
public ApiResponseDto<List<CodeDto>> getTypeCode(@PathVariable String type) {
|
||||||
return ApiResponseDto.ok(commonCodeService.getTypeCode(type));
|
return ApiResponseDto.ok(commonCodeService.getTypeCode(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Operation(summary = "코드 단건 조회", description = "코드 조회")
|
||||||
|
@ApiResponses(
|
||||||
|
value = {
|
||||||
|
@ApiResponse(
|
||||||
|
responseCode = "200",
|
||||||
|
description = "코드 조회 성공",
|
||||||
|
content =
|
||||||
|
@Content(
|
||||||
|
mediaType = "application/json",
|
||||||
|
schema = @Schema(implementation = CodeDto.class))),
|
||||||
|
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||||
|
})
|
||||||
|
@GetMapping("/type/copy/{type}")
|
||||||
|
public ApiResponseDto<List<CodeDto>> getTypeCodeCopy(@PathVariable String type) {
|
||||||
|
return ApiResponseDto.ok(commonCodeService.getTypeCode(type));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user