Merge branch 'main' into yoon
This commit is contained in:
commit
cf4e687aab
@ -29,10 +29,11 @@ public class MapBasedUrlRoleMapper implements UrlRoleMapper{
|
|||||||
@Override
|
@Override
|
||||||
public Map<String, String> getUrlRoleMappings() {
|
public Map<String, String> getUrlRoleMappings() {
|
||||||
urlRoleMappings.put("/api/user/**", PERMIT_ALL);
|
urlRoleMappings.put("/api/user/**", PERMIT_ALL);
|
||||||
urlRoleMappings.put("/api/project/**", ROLE_MEMBER);
|
urlRoleMappings.put("/api/project/**", ROLE_MEMBER);
|
||||||
// urlRoleMappings.put("/api/test/**", ROLE_MEMBER);
|
urlRoleMappings.put("/api/vacation/**", PERMIT_ALL);
|
||||||
|
urlRoleMappings.put("/api/board/**", PERMIT_ALL);
|
||||||
|
urlRoleMappings.put("/api/vote/**", PERMIT_ALL);
|
||||||
|
urlRoleMappings.put("/api/worddict/**", PERMIT_ALL);
|
||||||
return new HashMap<>(urlRoleMappings);
|
return new HashMap<>(urlRoleMappings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -80,8 +80,8 @@ public class BoardController {
|
|||||||
@ParameterCheck
|
@ParameterCheck
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public ApiResponse<BigInteger> createBoard(@ReqMap MapDto map) {
|
public ApiResponse<BigInteger> createBoard(@ReqMap MapDto map) {
|
||||||
//Long userId = AuthUtil.getUser().getId();
|
Long userId = AuthUtil.getUser().getId();
|
||||||
map.put("MEMBERSEQ", 22);
|
map.put("MEMBERSEQ", userId);
|
||||||
|
|
||||||
if (map.containsKey("LOCBRDPWD") && !map.getString("LOCBRDPWD").trim().isEmpty()) { // 빈 값 체크
|
if (map.containsKey("LOCBRDPWD") && !map.getString("LOCBRDPWD").trim().isEmpty()) { // 빈 값 체크
|
||||||
String rawPassword = map.getString("LOCBRDPWD");
|
String rawPassword = map.getString("LOCBRDPWD");
|
||||||
@ -143,8 +143,8 @@ public class BoardController {
|
|||||||
@ParameterCheck
|
@ParameterCheck
|
||||||
@PostMapping("/{CMNBRDSEQ}/attachments")
|
@PostMapping("/{CMNBRDSEQ}/attachments")
|
||||||
public ApiResponse<String> uploadAttachment(@ReqMap MapDto map) {
|
public ApiResponse<String> uploadAttachment(@ReqMap MapDto map) {
|
||||||
//Long userId = AuthUtil.getUser().getId();
|
Long userId = AuthUtil.getUser().getId();
|
||||||
map.put("CMNFLEREG", 22);
|
map.put("CMNFLEREG", userId);
|
||||||
boardService.addAttachment(map);
|
boardService.addAttachment(map);
|
||||||
return ApiResponse.ok("첨부파일이 저장되었습니다.");
|
return ApiResponse.ok("첨부파일이 저장되었습니다.");
|
||||||
}
|
}
|
||||||
@ -158,8 +158,8 @@ public class BoardController {
|
|||||||
@ParameterCheck
|
@ParameterCheck
|
||||||
@PostMapping("/{LOCBRDSEQ}/{LOCCMTSEQ}/reaction")
|
@PostMapping("/{LOCBRDSEQ}/{LOCCMTSEQ}/reaction")
|
||||||
public ApiResponse<String> reactToBoard(@ReqMap MapDto map) {
|
public ApiResponse<String> reactToBoard(@ReqMap MapDto map) {
|
||||||
//Long userId = AuthUtil.getUser().getId();
|
Long userId = AuthUtil.getUser().getId();
|
||||||
map.put("MEMBERSEQ", 22);
|
map.put("MEMBERSEQ", userId);
|
||||||
boardService.reactToBoard(map);
|
boardService.reactToBoard(map);
|
||||||
return ApiResponse.ok("반응이 성공적으로 처리되었습니다.");
|
return ApiResponse.ok("반응이 성공적으로 처리되었습니다.");
|
||||||
}
|
}
|
||||||
@ -186,8 +186,8 @@ public class BoardController {
|
|||||||
@ParameterCheck
|
@ParameterCheck
|
||||||
@PostMapping("/{LOCBRDSEQ}/comment")
|
@PostMapping("/{LOCBRDSEQ}/comment")
|
||||||
public ApiResponse<String> addCommentOrReply(@ReqMap MapDto map) {
|
public ApiResponse<String> addCommentOrReply(@ReqMap MapDto map) {
|
||||||
//Long userId = AuthUtil.getUser().getId();
|
Long userId = AuthUtil.getUser().getId();
|
||||||
map.put("MEMBERSEQ", 22);
|
map.put("MEMBERSEQ", userId);
|
||||||
|
|
||||||
if (map.containsKey("LOCCMTPWD") && !map.getString("LOCCMTPWD").trim().isEmpty()) { // 빈 값 체크
|
if (map.containsKey("LOCCMTPWD") && !map.getString("LOCCMTPWD").trim().isEmpty()) { // 빈 값 체크
|
||||||
String rawPassword = map.getString("LOCCMTPWD");
|
String rawPassword = map.getString("LOCCMTPWD");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user