Skip to content

Commit 90bd260

Browse files
committed
Merge remote-tracking branch 'origin/develop' into release-test
2 parents aa4345b + aa06588 commit 90bd260

29 files changed

+347
-92
lines changed

src/main/java/clap/server/adapter/inbound/security/filter/LoginAttemptFilter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package clap.server.adapter.inbound.security.filter;
22

3+
import clap.server.application.port.inbound.auth.CheckAccountLockStatusUseCase;
34
import clap.server.application.service.auth.LoginAttemptService;
45
import clap.server.exception.AuthException;
56
import jakarta.servlet.FilterChain;
@@ -25,7 +26,7 @@
2526
@Slf4j
2627
public class LoginAttemptFilter extends OncePerRequestFilter {
2728

28-
private final LoginAttemptService loginAttemptService;
29+
private final CheckAccountLockStatusUseCase checkAccountLockStatusUseCase;
2930

3031
@Override
3132
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
@@ -34,7 +35,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
3435
if (request.getRequestURI().equals(LOGIN_ENDPOINT)) {
3536
String clientIp = getClientIp(request);
3637

37-
loginAttemptService.checkAccountIsLocked(clientIp);
38+
checkAccountLockStatusUseCase.checkAccountIsLocked(clientIp);
3839

3940
}
4041
} catch (AuthException e) {

src/main/java/clap/server/adapter/inbound/web/dto/member/request/UpdateMemberInfoRequest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ public record UpdateMemberInfoRequest(
99
String name,
1010
@NotNull @Schema(description = "이미지 수정이 있을 시에는 false을, 이미지를 삭제할 때에는 true을 보냅니다.")
1111
Boolean isProfileImageDeleted,
12-
@Schema(description = "아지트 알림 수신 여부")
13-
boolean agitNotification,
1412
@Schema(description = "이메일 알림 수신 여부")
1513
boolean emailNotification,
1614
@Schema(description = "카카오 워크 알림 수신 여부")

src/main/java/clap/server/adapter/inbound/web/dto/member/response/MemberDetailInfoResponse.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ public record MemberDetailInfoResponse(
2323
NotificationSettingInfoResponse notificationSettingInfo
2424
) {
2525
public static record NotificationSettingInfoResponse(
26-
@Schema(description = "아지트 알림 수신 여부")
27-
boolean agit,
2826
@Schema(description = "이메일 알림 수신 여부")
2927
boolean email,
3028
@Schema(description = "카카오 워크 알림 수신 여부")

src/main/java/clap/server/adapter/inbound/web/history/CommandCommentController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class CommandCommentController {
2424
private final EditCommentUsecase editCommentUsecase;
2525
private final DeleteCommentUsecase deleteCommentUsecase;
2626

27+
@Deprecated
2728
@Operation(summary = "댓글 수정")
2829
@Parameter(name = "commentId", description = "수정할 댓글 고유 ID", required = true, in = ParameterIn.PATH)
2930
@PatchMapping("/{commentId}")

src/main/java/clap/server/adapter/inbound/web/notification/ManagementNotificationController.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public class ManagementNotificationController {
2323
private final UpdateNotificationUsecase updateNotificationUsecase;
2424
private final UpdateAllNotificationUsecase updateAllNotificationUsecase;
2525
private final EnableKakaoUsecase enableKakaoUsecase;
26-
private final EnableAgitUsecase enableAgitUsecase;
2726
private final EnableEmailUsecase enableEmailUsecase;
2827

2928
@Operation(summary = "알림 목록에서 한 개 눌렀을 때 읽음 처리")
@@ -40,18 +39,14 @@ public void updateAllNotificationIsRead(@AuthenticationPrincipal SecurityUserDet
4039
updateAllNotificationUsecase.updateAllNotification(userInfo.getUserId());
4140
}
4241

42+
@Deprecated
4343
@Operation(summary = "카카오 푸시 알림 활성화/비활성화 API", description = "알림 거부였을 시 -> 승인으로 변경, 알림 승인이였을 시 -> 거부로 변경")
4444
@PatchMapping("/kakao")
4545
public void enableKaKaoWork(@AuthenticationPrincipal SecurityUserDetails userInfo) {
4646
enableKakaoUsecase.enableKakao(userInfo.getUserId());
4747
}
4848

49-
@Operation(summary = "아지트 푸시 알림 활성화/비활성화 API", description = "알림 거부였을 시 -> 승인으로 변경, 알림 승인이였을 시 -> 거부로 변경")
50-
@PatchMapping("/agit")
51-
public void enableAgit(@AuthenticationPrincipal SecurityUserDetails userInfo) {
52-
enableAgitUsecase.enableAgit(userInfo.getUserId());
53-
}
54-
49+
@Deprecated
5550
@Operation(summary = "이메일 푸시 알림 활성화/비활성화 API", description = "알림 거부였을 시 -> 승인으로 변경, 알림 승인이였을 시 -> 거부로 변경")
5651
@PatchMapping("/email")
5752
public void enableEmail(@AuthenticationPrincipal SecurityUserDetails userInfo) {

src/main/java/clap/server/adapter/inbound/web/notification/SubscribeEmitterController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.springframework.web.bind.annotation.RestController;
1515
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
1616

17+
@Deprecated
1718
@Tag(name = "SSE 관리 - 회원 등록(최초 접속시)")
1819
@WebAdapter
1920
@RequestMapping("/api/sse")

src/main/java/clap/server/adapter/outbound/persistense/entity/member/MemberEntity.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ public class MemberEntity extends BaseTimeEntity {
5656
@Builder.Default
5757
private Boolean kakaoworkNotificationEnabled = Boolean.TRUE;;
5858

59-
@Column(name = "agit_notification_enabled")
60-
@Builder.Default
61-
private Boolean agitNotificationEnabled = Boolean.TRUE;;
62-
6359
@Column(name = "email_notification_enabled")
6460
@Builder.Default
6561
private Boolean emailNotificationEnabled = Boolean.TRUE;;

src/main/java/clap/server/application/mapper/response/MemberResponseMapper.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,11 @@ public static MemberDetailInfoResponse toMemberDetailInfoResponse(Member member)
3838

3939
public static MemberDetailInfoResponse.NotificationSettingInfoResponse toNotificationSettingInfoResponse(Member member) {
4040
return new MemberDetailInfoResponse.NotificationSettingInfoResponse(
41-
member.getAgitNotificationEnabled(),
4241
member.getEmailNotificationEnabled(),
4342
member.getKakaoworkNotificationEnabled()
4443
);
4544

4645
}
47-
public static Member toMember(MemberInfo memberInfo) {
48-
return Member.builder()
49-
.memberInfo(memberInfo)
50-
.agitNotificationEnabled(null)
51-
.emailNotificationEnabled(null)
52-
.kakaoworkNotificationEnabled(null)
53-
.admin(null)
54-
.imageUrl(null)
55-
.status(null)
56-
.password(null)
57-
.build();
58-
}
5946

6047
public static MemberDetailsResponse toMemberDetailsResponse(Member member) {
6148
return new MemberDetailsResponse(
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package clap.server.application.port.inbound.auth;
2+
3+
public interface CheckAccountLockStatusUseCase {
4+
void checkAccountIsLocked(String clientIp);
5+
}

src/main/java/clap/server/application/port/inbound/history/EditCommentUsecase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import clap.server.adapter.inbound.web.dto.history.request.EditCommentRequest;
44

5+
@Deprecated
56
public interface EditCommentUsecase {
67

8+
@Deprecated
79
void editComment(Long memberId, Long commentId, EditCommentRequest request);
810
}

0 commit comments

Comments
 (0)