멤어ID 임시로 사용

This commit is contained in:
dyhj625 2025-01-20 15:20:07 +09:00
parent 2c23644ebd
commit e12bcd15bd

View File

@ -158,6 +158,8 @@ public class BoardController {
BigInteger createdIdx = boardService.createBoard(map); // 작성된 게시물의 idx를 반환
Map<String, Object> responseData = new HashMap<>();
responseData.put("CMNBRDSEQ", createdIdx);
//로그인 미개발 ->임시
map.put("MEMBERSEQ", 1);
responseData.put("message", "게시물이 작성되었습니다.");
return ApiResponse.ok(responseData);
}
@ -276,6 +278,8 @@ public class BoardController {
@ParameterCheck
@PostMapping("/{LOCBRDSEQ}/{LOCCMTSEQ}/reaction")
public ApiResponse<String> reactToBoard(@ReqMap MapDto map) {
//로그인 미개발 ->임시
map.put("MEMBERSEQ", 1);
boardService.reactToBoard(map);
return ApiResponse.ok("반응이 성공적으로 처리되었습니다.");
}
@ -307,6 +311,9 @@ public class BoardController {
@ParameterCheck
@PostMapping("/{LOCBRDSEQ}/comment")
public ApiResponse<String> addCommentOrReply(@ReqMap MapDto map) {
//로그인 미개발 ->임시
map.put("MEMBERSEQ", 1);
// 비밀번호 암호화 (비밀번호가 있는 경우에만)
if (map.containsKey("LOCCMTPWD")) {
String rawPassword = map.getString("LOCCMTPWD");