-
Notifications
You must be signed in to change notification settings - Fork 0
[FEAT] 적법성 검사 #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] 적법성 검사 #86
Changes from all commits
6c1670f
6bd1c7b
4729368
654cdbc
c4e2933
c1a2bf8
afe7ff2
4805cce
ae60c80
0cb0583
b4fc0b2
7daa1df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -100,6 +100,26 @@ public ResponseEntity<ApiResponse<Void>> updateDepositPrice( | |||||||||||||||||||||||||||||||||||||
| service.updateDepositPrice(contractChatId, userDetails.getUserId()))); | ||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| // @Override | ||||||||||||||||||||||||||||||||||||||
| // @PostMapping("/getContracts") | ||||||||||||||||||||||||||||||||||||||
| // public ResponseEntity<ApiResponse<ContractDTO>> getContracts( | ||||||||||||||||||||||||||||||||||||||
| // @PathVariable Long contractChatId, | ||||||||||||||||||||||||||||||||||||||
| // @AuthenticationPrincipal CustomUserDetails userDetails) { | ||||||||||||||||||||||||||||||||||||||
| // return ResponseEntity.ok( | ||||||||||||||||||||||||||||||||||||||
| // ApiResponse.success(service.getContract(contractChatId, | ||||||||||||||||||||||||||||||||||||||
| // userDetails.getUserId()))); | ||||||||||||||||||||||||||||||||||||||
| // } | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| @Override | ||||||||||||||||||||||||||||||||||||||
| @PostMapping("/save/special-contract") | ||||||||||||||||||||||||||||||||||||||
| public ResponseEntity<ApiResponse<Void>> saveSpecialContract( | ||||||||||||||||||||||||||||||||||||||
| @PathVariable Long contractChatId, | ||||||||||||||||||||||||||||||||||||||
| @AuthenticationPrincipal CustomUserDetails userDetails) { | ||||||||||||||||||||||||||||||||||||||
| return ResponseEntity.ok( | ||||||||||||||||||||||||||||||||||||||
| ApiResponse.success( | ||||||||||||||||||||||||||||||||||||||
| service.saveSpecialContract(contractChatId, userDetails.getUserId()))); | ||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| @Override | ||||||||||||||||||||||||||||||||||||||
| @PostMapping("/legality") | ||||||||||||||||||||||||||||||||||||||
| public ResponseEntity<ApiResponse<LegalityDTO>> getLegality( | ||||||||||||||||||||||||||||||||||||||
|
|
@@ -110,13 +130,45 @@ public ResponseEntity<ApiResponse<LegalityDTO>> getLegality( | |||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| @Override | ||||||||||||||||||||||||||||||||||||||
| @PostMapping("/specialContract") | ||||||||||||||||||||||||||||||||||||||
| public ResponseEntity<ApiResponse<Void>> saveSpecialContract( | ||||||||||||||||||||||||||||||||||||||
| @DeleteMapping("/delete/legality") | ||||||||||||||||||||||||||||||||||||||
| public ResponseEntity<ApiResponse<String>> deleteOwnerLegality( | ||||||||||||||||||||||||||||||||||||||
| @PathVariable Long contractChatId, | ||||||||||||||||||||||||||||||||||||||
| @AuthenticationPrincipal CustomUserDetails userDetails) { | ||||||||||||||||||||||||||||||||||||||
| return ResponseEntity.ok( | ||||||||||||||||||||||||||||||||||||||
| ApiResponse.success( | ||||||||||||||||||||||||||||||||||||||
| service.saveSpecialContract(contractChatId, userDetails.getUserId()))); | ||||||||||||||||||||||||||||||||||||||
| service.deleteOwnerLegality(contractChatId, userDetails.getUserId()))); | ||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| @Override | ||||||||||||||||||||||||||||||||||||||
| @PostMapping("/suggest/legality") | ||||||||||||||||||||||||||||||||||||||
| public ResponseEntity<ApiResponse<Void>> updateOwnerLegality( | ||||||||||||||||||||||||||||||||||||||
| @PathVariable Long contractChatId, | ||||||||||||||||||||||||||||||||||||||
| @AuthenticationPrincipal CustomUserDetails userDetails, | ||||||||||||||||||||||||||||||||||||||
| @RequestBody UpdateLegalityDTO dto) { | ||||||||||||||||||||||||||||||||||||||
| return ResponseEntity.ok( | ||||||||||||||||||||||||||||||||||||||
| ApiResponse.success( | ||||||||||||||||||||||||||||||||||||||
| service.updateOwnerLegality(contractChatId, userDetails.getUserId(), dto))); | ||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| @Override | ||||||||||||||||||||||||||||||||||||||
| @PostMapping("/update/legality") | ||||||||||||||||||||||||||||||||||||||
| public ResponseEntity<ApiResponse<Void>> updateBuyerLegality( | ||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
| @PathVariable Long contractChatId, | ||||||||||||||||||||||||||||||||||||||
| @AuthenticationPrincipal CustomUserDetails userDetails, | ||||||||||||||||||||||||||||||||||||||
| @RequestBody SpecialContractUpdateDTO dto) { | ||||||||||||||||||||||||||||||||||||||
| return ResponseEntity.ok( | ||||||||||||||||||||||||||||||||||||||
| ApiResponse.success( | ||||||||||||||||||||||||||||||||||||||
| service.updateBuyerLegality(contractChatId, userDetails.getUserId(), dto))); | ||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| @Override | ||||||||||||||||||||||||||||||||||||||
| @GetMapping("/reject/legality") | ||||||||||||||||||||||||||||||||||||||
| public ResponseEntity<ApiResponse<String>> rejectBuyerLegality( | ||||||||||||||||||||||||||||||||||||||
| @PathVariable Long contractChatId, | ||||||||||||||||||||||||||||||||||||||
| @AuthenticationPrincipal CustomUserDetails userDetails) { | ||||||||||||||||||||||||||||||||||||||
| return ResponseEntity.ok( | ||||||||||||||||||||||||||||||||||||||
| ApiResponse.success( | ||||||||||||||||||||||||||||||||||||||
| service.rejectBuyerLegality(contractChatId, userDetails.getUserId()))); | ||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+164
to
172
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 거절(상태 변경)을 GET으로 노출하면 안 됩니다 거절은 서버 상태를 변경하므로 GET 대신 POST(또는 PATCH)를 사용하세요. 경로도 명확히 표기하는 것을 권장합니다. 적용 제안(diff): - @GetMapping("/reject/legality")
+ @PostMapping("/legality/reject")
public ResponseEntity<ApiResponse<String>> rejectBuyerLegality(📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| @Override | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
| import java.util.stream.Collectors; | ||
|
|
||
| import org.scoula.domain.contract.document.ContractMongoDocument; | ||
| import org.scoula.domain.precontract.vo.IdentityVerificationInfoVO; | ||
| import org.scoula.global.common.constant.Constants; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonFormat; | ||
|
|
@@ -63,15 +64,18 @@ public static class SpecialContractDTO { | |
| private String content; | ||
| } | ||
|
|
||
| public static ContractDTO toDTO(ContractMongoDocument document) { | ||
| public static ContractDTO toDTO( | ||
| ContractMongoDocument document, | ||
| IdentityVerificationInfoVO ownerVO, | ||
| IdentityVerificationInfoVO buyerVO) { | ||
| return ContractDTO.builder() | ||
| .contractChatId(document.getContractChatId()) | ||
| .contractChatId(ownerVO.getContractId()) | ||
| .ownerName(document.getOwnerName()) | ||
| .ownerAddr(document.getOwnerAddr()) | ||
| .ownerPhoneNum(document.getOwnerPhoneNum()) | ||
| .ownerAddr(ownerVO.getAddr1() + " " + ownerVO.getAddr2()) | ||
| .ownerPhoneNum(ownerVO.getPhoneNumber()) | ||
| .buyerName(document.getBuyerName()) | ||
| .buyerAddr(document.getBuyerAddr()) | ||
| .buyerPhoneNum(document.getBuyerPhoneNum()) | ||
| .buyerAddr(buyerVO.getAddr1() + " " + buyerVO.getAddr2()) | ||
| .buyerPhoneNum(buyerVO.getPhoneNumber()) | ||
|
Comment on lines
+74
to
+78
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 주소 결합 시 null 체크 필요 주소 필드를 문자열 연결로 결합할 때 null 값에 대한 처리가 없어 "null null" 같은 문자열이 생성될 수 있습니다. - .ownerAddr(ownerVO.getAddr1() + " " + ownerVO.getAddr2())
- .ownerPhoneNum(ownerVO.getPhoneNumber())
+ .ownerAddr(formatAddress(ownerVO.getAddr1(), ownerVO.getAddr2()))
+ .ownerPhoneNum(ownerVO.getPhoneNumber())
.buyerName(document.getBuyerName())
- .buyerAddr(buyerVO.getAddr1() + " " + buyerVO.getAddr2())
- .buyerPhoneNum(buyerVO.getPhoneNumber())
+ .buyerAddr(formatAddress(buyerVO.getAddr1(), buyerVO.getAddr2()))
+ .buyerPhoneNum(buyerVO.getPhoneNumber())다음 헬퍼 메서드를 클래스에 추가하세요: private static String formatAddress(String addr1, String addr2) {
if (addr1 == null && addr2 == null) {
return "";
}
if (addr1 == null) {
return addr2;
}
if (addr2 == null) {
return addr1;
}
return addr1 + " " + addr2;
}🤖 Prompt for AI Agents |
||
| .homeAddr1(document.getHomeAddr1()) | ||
| .homeAddr2(document.getHomeAddr2()) | ||
| .residenceType(document.getResidenceType()) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| package org.scoula.domain.contract.dto; | ||
|
|
||
| import lombok.*; | ||
|
|
||
| @Getter | ||
| @Setter | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @Builder | ||
| public class LegalityRequestDTO { | ||
| private String legalBasis; | ||
| private Long requestId; | ||
| private String createdAt; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package org.scoula.domain.contract.dto; | ||
|
|
||
| import lombok.*; | ||
|
|
||
| @Getter | ||
| @Setter | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @Builder | ||
| public class UpdateLegalityDTO { | ||
| private String legalBasis; | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -72,6 +72,16 @@ public interface ContractService { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Void updateDepositPrice(Long contractChatId, Long userId); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // * @param contractChatId 채팅방 아이디 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // * @param userId 유저 아이디 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // * @return 계약서 내용을 보내기 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // ContractDTO getContracts(Long contractChatId, Long userId); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** * step4 start 특약을 개약 테이블에 저장하기 * * @param contractChatId 채팅방 아이디 * @param userId 유저 아이디 */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Void saveSpecialContract(Long contractChatId, Long userId); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * step4 (init) 계약서를 AI로 보내고, 적법성 받기 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -82,20 +92,48 @@ public interface ContractService { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| LegalityDTO getLegality(Long contractChatId, Long userId); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * step4 start 특약을 개약 테이블에 저장하기 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * step4 적법성 검사 후 수정된 특약으로 변경 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @param contractChatId 채팅방 아이디 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @param userId 유저 아이디 @Param dto 변경된 특약 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Void updateSpecialContract(Long contractChatId, Long userId, SpecialContractUpdateDTO dto); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * step4 (init) 계약서를 AI로 보내고, 적법성 받기 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @param contractChatId 채팅방 아이디 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @param userId 유저 아이디 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @return AI가 계약서를 보고 주는 적법성을 리턴값으로 보내기 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Void saveSpecialContract(Long contractChatId, Long userId); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| String deleteOwnerLegality(Long contractChatId, Long userId); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * step4 적법성 검사 후 수정된 특약으로 변경 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * step4 (init) 계약서를 AI로 보내고, 적법성 받기 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @param contractChatId 채팅방 아이디 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @param userId 유저 아이디 @Param dto 변경된 특약 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @param userId 유저 아이디 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @return AI가 계약서를 보고 주는 적법성을 리턴값으로 보내기 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Void updateSpecialContract(Long contractChatId, Long userId, SpecialContractUpdateDTO dto); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Void updateOwnerLegality(Long contractChatId, Long userId, UpdateLegalityDTO dto); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * step4 (init) 계약서를 AI로 보내고, 적법성 받기 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @param contractChatId 채팅방 아이디 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @param userId 유저 아이디 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @return AI가 계약서를 보고 주는 적법성을 리턴값으로 보내기 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Void updateBuyerLegality(Long contractChatId, Long userId, SpecialContractUpdateDTO dto); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * step4 (init) 계약서를 AI로 보내고, 적법성 받기 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @param contractChatId 채팅방 아이디 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @param userId 유저 아이디 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * @return AI가 계약서를 보고 주는 적법성을 리턴값으로 보내기 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| String rejectBuyerLegality(Long contractChatId, Long userId); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+95
to
+136
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 중복된 JavaDoc 설명 수정 필요 여러 메서드에서 동일한 JavaDoc 설명("계약서를 AI로 보내고, 적법성 받기")이 사용되고 있습니다. 각 메서드의 실제 기능에 맞게 설명을 수정해야 합니다. - /**
- * step4 (init) 계약서를 AI로 보내고, 적법성 받기
- *
- * @param contractChatId 채팅방 아이디
- * @param userId 유저 아이디
- * @return AI가 계약서를 보고 주는 적법성을 리턴값으로 보내기
- */
+ /**
+ * step4 임대인의 적법성 요청을 삭제
+ *
+ * @param contractChatId 채팅방 아이디
+ * @param userId 유저 아이디
+ * @return 삭제 완료 메시지
+ */
String deleteOwnerLegality(Long contractChatId, Long userId);
- /**
- * step4 (init) 계약서를 AI로 보내고, 적법성 받기
- *
- * @param contractChatId 채팅방 아이디
- * @param userId 유저 아이디
- * @return AI가 계약서를 보고 주는 적법성을 리턴값으로 보내기
- */
+ /**
+ * step4 임대인의 적법성 요청을 업데이트
+ *
+ * @param contractChatId 채팅방 아이디
+ * @param userId 유저 아이디
+ * @param dto 업데이트할 적법성 정보
+ */
Void updateOwnerLegality(Long contractChatId, Long userId, UpdateLegalityDTO dto);
- /**
- * step4 (init) 계약서를 AI로 보내고, 적법성 받기
- *
- * @param contractChatId 채팅방 아이디
- * @param userId 유저 아이디
- * @return AI가 계약서를 보고 주는 적법성을 리턴값으로 보내기
- */
+ /**
+ * step4 임차인의 적법성 요청을 업데이트
+ *
+ * @param contractChatId 채팅방 아이디
+ * @param userId 유저 아이디
+ * @param dto 업데이트할 특약 정보
+ */
Void updateBuyerLegality(Long contractChatId, Long userId, SpecialContractUpdateDTO dto);
- /**
- * step4 (init) 계약서를 AI로 보내고, 적법성 받기
- *
- * @param contractChatId 채팅방 아이디
- * @param userId 유저 아이디
- * @return AI가 계약서를 보고 주는 적법성을 리턴값으로 보내기
- */
+ /**
+ * step4 임차인의 적법성 요청을 거절
+ *
+ * @param contractChatId 채팅방 아이디
+ * @param userId 유저 아이디
+ * @return 거절 완료 메시지
+ */
String rejectBuyerLegality(Long contractChatId, Long userId);📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * step4 finish 적법성 검사 후 다음단계로 넘어가기 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오타 수정 필요
@ApiOperationvalue에 "적법성 검사}" 형태로 괄호가 일치하지 않습니다.📝 Committable suggestion
🤖 Prompt for AI Agents