Skip to content
Snippets Groups Projects
Commit 585f5bb2 authored by 천 진강's avatar 천 진강
Browse files

fix: API 경로, DB 필드가 잘못되어있던 문제 수정

parent 3925e264
Branches
No related tags found
3 merge requests!15Feat/certificate,!12Feat/log,!11Feat/log 사용자 CUD 활동 로그 생성 및 조회
...@@ -14,7 +14,7 @@ public class RoutingController { ...@@ -14,7 +14,7 @@ public class RoutingController {
private final RoutingService routingService; private final RoutingService routingService;
@PostMapping("/forwarding") @PostMapping("/routing")
public ResponseEntity<Object> create(@RequestParam String projectId, public ResponseEntity<Object> create(@RequestParam String projectId,
@RequestBody RoutingDTO dto) { @RequestBody RoutingDTO dto) {
routingService.createRouting(projectId, dto); routingService.createRouting(projectId, dto);
......
...@@ -25,7 +25,7 @@ public class RoutingDTO { ...@@ -25,7 +25,7 @@ public class RoutingDTO {
@NotBlank @NotBlank
private String port; private String port;
private Long id; private Long id;
@NotBlank @NotNull
private Long certificateId; private Long certificateId;
private LocalDateTime createdAt; private LocalDateTime createdAt;
......
...@@ -25,11 +25,11 @@ public class Routing extends BaseTimeEntity { ...@@ -25,11 +25,11 @@ public class Routing extends BaseTimeEntity {
private Long routingId; private Long routingId;
@OneToOne @OneToOne
@JoinColumn(name = "user_id", nullable = false) @JoinColumn(name = "user_id")
private User user; private User user;
@OneToOne @OneToOne
@JoinColumn(name = "certificate_id", nullable = false) @JoinColumn(name = "certificate_id")
private Certificate certificate; private Certificate certificate;
private String projectId; private String projectId;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment