Skip to content
This repository was archived by the owner on Jan 11, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


import com.example.spot.auth.domain.RefreshToken;
import com.example.spot.auth.domain.RefreshTokenRepository;
import com.example.spot.auth.infrastructure.jpa.RefreshTokenRepository;
import com.example.spot.auth.domain.RsaKey;
import com.example.spot.auth.domain.VerificationCode;
import com.example.spot.auth.domain.rsa.RSAKeyRepository;
Expand All @@ -22,10 +22,10 @@
import com.example.spot.member.domain.enums.Gender;
import com.example.spot.member.domain.enums.LoginType;
import com.example.spot.member.domain.enums.Status;
import com.example.spot.member.infrastructure.MemberRepository;
import com.example.spot.member.infrastructure.PreferredRegionRepository;
import com.example.spot.member.infrastructure.PreferredThemeRepository;
import com.example.spot.member.infrastructure.StudyJoinReasonRepository;
import com.example.spot.member.infrastructure.jpa.MemberRepository;
import com.example.spot.member.infrastructure.jpa.PreferredRegionRepository;
import com.example.spot.member.infrastructure.jpa.PreferredThemeRepository;
import com.example.spot.member.infrastructure.jpa.StudyJoinReasonRepository;
import com.example.spot.member.presentation.dto.MemberRequestDTO;
import com.example.spot.member.presentation.dto.MemberRequestDTO.SignUpDetailDTO;
import com.example.spot.member.presentation.dto.MemberResponseDTO;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import com.example.spot.auth.application.refactor.TokenService;
import com.example.spot.auth.domain.RefreshToken;
import com.example.spot.auth.domain.RefreshTokenRepository;
import com.example.spot.auth.infrastructure.jpa.RefreshTokenRepository;
import com.example.spot.auth.presentation.dto.token.TokenResponseDTO;
import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.exception.GeneralException;
import com.example.spot.common.security.utils.JwtTokenProvider;
import com.example.spot.member.domain.Member;
import com.example.spot.member.infrastructure.MemberRepository;
import com.example.spot.member.infrastructure.jpa.MemberRepository;
import java.util.Objects;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package com.example.spot.auth.application.refactor.impl;

import com.example.spot.auth.domain.RefreshToken;
import com.example.spot.auth.domain.RefreshTokenRepository;
import com.example.spot.auth.infrastructure.jpa.RefreshTokenRepository;
import com.example.spot.auth.presentation.dto.token.TokenResponseDTO;
import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.exception.GeneralException;
import com.example.spot.common.security.utils.JwtTokenProvider;
import com.example.spot.member.domain.Member;
import com.example.spot.member.domain.enums.LoginType;
import com.example.spot.member.infrastructure.MemberRepository;
import com.example.spot.member.infrastructure.PreferredRegionRepository;
import com.example.spot.member.infrastructure.PreferredThemeRepository;
import com.example.spot.member.infrastructure.StudyJoinReasonRepository;
import com.example.spot.member.infrastructure.jpa.MemberRepository;
import com.example.spot.member.infrastructure.jpa.PreferredRegionRepository;
import com.example.spot.member.infrastructure.jpa.PreferredThemeRepository;
import com.example.spot.member.infrastructure.jpa.StudyJoinReasonRepository;
import com.example.spot.member.presentation.dto.MemberResponseDTO;
import jakarta.persistence.EntityManager;
import jakarta.persistence.PersistenceContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
package com.example.spot.auth.domain;
package com.example.spot.auth.infrastructure.jpa;

import com.example.spot.auth.domain.RefreshToken;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface RefreshTokenRepository extends JpaRepository<RefreshToken, Long>{
public interface RefreshTokenRepository extends JpaRepository<RefreshToken, Long> {
Optional<RefreshToken> findByToken(String token);

void deleteByMemberId(Long memberId);

void deleteAllByMemberId(Long memberId);

boolean existsByMemberId(Long memberId);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.example.spot.common.application.admin;

import com.example.spot.auth.domain.RefreshTokenRepository;
import com.example.spot.auth.infrastructure.jpa.RefreshTokenRepository;
import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.exception.handler.MemberHandler;
import com.example.spot.common.presentation.dto.admin.AdminResponseDTO;
import com.example.spot.common.security.utils.SecurityUtils;
import com.example.spot.member.domain.Member;
import com.example.spot.member.infrastructure.MemberRepository;
import com.example.spot.member.infrastructure.jpa.MemberRepository;
import java.time.LocalDateTime;
import java.util.List;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import com.example.spot.post.domain.Post;
import com.example.spot.post.domain.schedule.PostScheduleComments;
import com.example.spot.post.domain.PostRepository;
import com.example.spot.post.domain.schedule.PostScheduleCommentsRepository;
import com.example.spot.post.infrastructure.jpa.PostRepository;
import com.example.spot.post.infrastructure.jpa.PostScheduleCommentsRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import com.example.spot.post.domain.Post;
import com.example.spot.post.domain.schedule.PostScheduleLikes;
import com.example.spot.post.domain.PostRepository;
import com.example.spot.post.domain.schedule.PostScheduleLikesRepository;
import com.example.spot.post.infrastructure.jpa.PostRepository;
import com.example.spot.post.infrastructure.jpa.PostScheduleLikesRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import com.example.spot.post.domain.Post;
import com.example.spot.post.domain.schedule.PostScheduleRealTime;
import com.example.spot.post.domain.PostRepository;
import com.example.spot.post.domain.schedule.PostScheduleRealTimeRepository;
import com.example.spot.post.infrastructure.jpa.PostRepository;
import com.example.spot.post.infrastructure.jpa.PostScheduleRealTimeRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.example.spot.common.api.exception.handler.MemberHandler;
import com.example.spot.member.application.MemberInfoService;
import com.example.spot.member.domain.Member;
import com.example.spot.member.infrastructure.MemberRepository;
import com.example.spot.member.infrastructure.jpa.MemberRepository;
import com.example.spot.member.presentation.dto.MemberRequestDTO.MemberUpdateDTO;
import com.example.spot.member.presentation.dto.MemberResponseDTO;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
import com.example.spot.member.domain.association.PreferredTheme;
import com.example.spot.member.domain.association.StudyJoinReason;
import com.example.spot.member.domain.enums.Reason;
import com.example.spot.member.infrastructure.MemberRepository;
import com.example.spot.member.infrastructure.PreferredRegionRepository;
import com.example.spot.member.infrastructure.PreferredThemeRepository;
import com.example.spot.member.infrastructure.StudyJoinReasonRepository;
import com.example.spot.member.infrastructure.jpa.MemberRepository;
import com.example.spot.member.infrastructure.jpa.PreferredRegionRepository;
import com.example.spot.member.infrastructure.jpa.PreferredThemeRepository;
import com.example.spot.member.infrastructure.jpa.StudyJoinReasonRepository;
import com.example.spot.member.presentation.dto.MemberRequestDTO;
import com.example.spot.member.presentation.dto.MemberResponseDTO;
import com.example.spot.member.presentation.dto.MemberResponseDTO.MemberRegionDTO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.example.spot.member.application.impl;

import com.example.spot.auth.domain.RefreshToken;
import com.example.spot.auth.domain.RefreshTokenRepository;
import com.example.spot.auth.infrastructure.jpa.RefreshTokenRepository;
import com.example.spot.auth.presentation.dto.token.TokenResponseDTO;
import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.exception.handler.MemberHandler;
Expand All @@ -11,7 +11,7 @@
import com.example.spot.member.domain.enums.Gender;
import com.example.spot.member.domain.enums.LoginType;
import com.example.spot.member.domain.enums.Status;
import com.example.spot.member.infrastructure.MemberRepository;
import com.example.spot.member.infrastructure.jpa.MemberRepository;
import com.example.spot.member.presentation.dto.MemberRequestDTO;
import com.example.spot.member.presentation.dto.MemberResponseDTO;
import java.util.UUID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.member.domain.validation.annotation.ExistMember;
import com.example.spot.member.infrastructure.MemberRepository;
import com.example.spot.member.infrastructure.jpa.MemberRepository;
import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.member.infrastructure;
package com.example.spot.member.infrastructure.jpa;

import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.exception.handler.MemberHandler;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.member.infrastructure;
package com.example.spot.member.infrastructure.jpa;

import com.example.spot.member.domain.association.PreferredRegion;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.member.infrastructure;
package com.example.spot.member.infrastructure.jpa;

import com.example.spot.member.domain.association.PreferredStudy;
import com.example.spot.study.domain.enums.StudyLikeStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.member.infrastructure;
package com.example.spot.member.infrastructure.jpa;

import com.example.spot.member.domain.association.PreferredTheme;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.member.infrastructure;
package com.example.spot.member.infrastructure.jpa;

import com.example.spot.member.domain.association.StudyJoinReason;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.example.spot.common.api.exception.GeneralException;
import com.example.spot.notification.application.GetNotificationUseCase;
import com.example.spot.notification.domain.Notification;
import com.example.spot.notification.domain.NotificationRepository;
import com.example.spot.notification.infrastructure.jpa.NotificationRepository;
import com.example.spot.notification.domain.enums.NotifyType;
import com.example.spot.notification.presentation.dto.response.NotificationResponseDTO.NotificationListDTO;
import com.example.spot.notification.presentation.dto.response.NotificationResponseDTO.NotificationListDTO.NotificationDTO;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.example.spot.common.api.exception.GeneralException;
import com.example.spot.notification.application.HandleAppliedStudyParticipationUseCase;
import com.example.spot.notification.domain.Notification;
import com.example.spot.notification.domain.NotificationRepository;
import com.example.spot.notification.infrastructure.jpa.NotificationRepository;
import com.example.spot.notification.domain.enums.NotifyType;
import com.example.spot.notification.presentation.dto.response.NotificationResponseDTO.NotificationProcessDTO;
import com.example.spot.study.domain.association.StudyMember;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.example.spot.common.api.exception.GeneralException;
import com.example.spot.notification.application.ReadNotificationUseCase;
import com.example.spot.notification.domain.Notification;
import com.example.spot.notification.domain.NotificationRepository;
import com.example.spot.notification.infrastructure.jpa.NotificationRepository;
import com.example.spot.notification.presentation.dto.response.NotificationResponseDTO.NotificationProcessDTO;
import java.util.Objects;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.example.spot.notification.domain;
package com.example.spot.notification.infrastructure.jpa;

import com.example.spot.notification.domain.Notification;
import com.example.spot.notification.domain.enums.NotifyType;
import java.util.Optional;

Expand All @@ -11,9 +12,13 @@

@Repository
public interface NotificationRepository extends JpaRepository<Notification, Long> {
Optional<Notification> findByMemberIdAndStudyIdAndTypeAndIsChecked(Long memberId, Long studyId, NotifyType type, boolean isChecked);
Optional<Notification> findByMemberIdAndStudyIdAndTypeAndIsChecked(Long memberId, Long studyId, NotifyType type,
boolean isChecked);

List<Notification> findByMemberIdAndTypeNot(Long memberId, Pageable pageable, NotifyType type);
List<Notification> findByMemberIdAndTypeAndIsChecked(Long memberId, Pageable pageable, NotifyType type, boolean isChecked);

List<Notification> findByMemberIdAndTypeAndIsChecked(Long memberId, Pageable pageable, NotifyType type,
boolean isChecked);

List<Notification> findByType(NotifyType type);
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.example.spot.post.application.command;

import com.example.spot.post.presentation.dto.response.PostLikeResponse;
import com.example.spot.post.presentation.dto.response.post.PostLikeResponse;

public interface LikePostUseCase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.example.spot.post.application.command;

import com.example.spot.comment.presentation.dto.CommentCreateRequest;
import com.example.spot.comment.presentation.dto.CommentCreateResponse;
import com.example.spot.post.presentation.dto.request.comment.CommentCreateRequest;
import com.example.spot.post.presentation.dto.response.comment.CommentCreateResponse;

public interface ManagePostCommentUseCase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.example.spot.post.application.command;

import com.example.spot.post.presentation.dto.request.PostCreateRequest;
import com.example.spot.post.presentation.dto.request.PostUpdateRequest;
import com.example.spot.post.presentation.dto.response.PostCreateResponse;
import com.example.spot.post.presentation.dto.request.post.PostCreateRequest;
import com.example.spot.post.presentation.dto.request.post.PostUpdateRequest;
import com.example.spot.post.presentation.dto.response.post.PostCreateResponse;

public interface ManagePostUseCase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.example.spot.post.application.command;

import com.example.spot.post.presentation.dto.request.ScrapAllDeleteRequest;
import com.example.spot.post.presentation.dto.response.ScrapPostResponse;
import com.example.spot.post.presentation.dto.response.ScrapsPostDeleteResponse;
import com.example.spot.post.presentation.dto.request.post.ScrapAllDeleteRequest;
import com.example.spot.post.presentation.dto.response.post.ScrapPostResponse;
import com.example.spot.post.presentation.dto.response.post.ScrapsPostDeleteResponse;

public interface ScrapPostUseCase {

Expand Down
Loading