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
Show all changes
24 commits
Select commit Hold shift + click to select a range
2c5e1ad
[SPOT-282][REFACTOR] Post 관련 도메인 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
07b9aff
[SPOT-282][REFACTOR] Comment 관련 도메인 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
ef4b204
[SPOT-282][REFACTOR] Post 좋아요 관련 도메인 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
c99e28c
[SPOT-282][REFACTOR] Post 이미지 관련 도메인 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
cf9d55b
[SPOT-282][REFACTOR] Reason 관련 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
7baf4aa
[SPOT-282][REFACTOR] Notification 관련 도메인 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
ea851b5
[SPOT-282][REFACTOR] Report 관련 도메인 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
6b222d1
[SPOT-282][REFACTOR] Post 스케쥴러 관련 도메인 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
f88a93a
[SPOT-282][REFACTOR] Post 관련 레포지토리 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
7b60c60
[SPOT-282][REFACTOR] Comment 관련 레포지토리 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
b5d5654
[SPOT-282][REFACTOR] Notification 관련 레포지토리 클래스 legacy -> refactor 패키지…
msk226 May 8, 2025
c4280e3
[SPOT-282][REFACTOR] Report 관련 레포지토리 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
222d517
[SPOT-282][REFACTOR] RSA 관련 레포지토리 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
48026e4
[SPOT-282][REFACTOR] Util 관련 컨트롤러 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
eb2ddf0
[SPOT-282][REFACTOR] Util, Admin 관련 프레젠테이션 레이어 클래스 legacy -> refactor…
msk226 May 8, 2025
61334ed
[SPOT-282][REFACTOR] Notification 관련 프레젠테이션 레이어 클래스 legacy -> refacto…
msk226 May 8, 2025
f8e2cb7
[SPOT-282][REFACTOR] Post, Comment, Report 관련 프레젠테이션 레이어 클래스 분리 및 leg…
msk226 May 8, 2025
a83291c
[SPOT-282][REFACTOR] S3, Mail, Admin 관련 애플리케이션 레이어 클래스 legacy -> refa…
msk226 May 8, 2025
804174f
[SPOT-282][REFACTOR] Notification 관련 애플리케이션 레이어 클래스 legacy -> refacto…
msk226 May 8, 2025
819b746
[SPOT-282][REFACTOR] Post, Comment, Report 관련 애플리케이션 레이어 클래스 legacy -…
msk226 May 8, 2025
3a2bbdb
[SPOT-282][REFACTOR] 애노테이션 검증 관련 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
5ae607e
[SPOT-282][REFACTOR] 스터디 검색 관련 클래스 legacy -> refactor 패키지로 이동
msk226 May 8, 2025
52ea3e5
[SPOT-282][REFACTOR] 모든 클래스 구조 이전 완료 및 legacy, refactor 패키지 삭제
msk226 May 8, 2025
27ed3a6
[SPOT-282][REFACTOR] 의존성 충돌 해결
msk226 May 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.example.spot.legacy.domain;
package com.example.spot.comment.domain;

import com.example.spot.refactor.common.entity.BaseEntity;
import com.example.spot.refactor.member.domain.Member;
import com.example.spot.comment.domain.association.LikedPostComment;
import com.example.spot.common.entity.BaseEntity;
import com.example.spot.member.domain.Member;
import com.example.spot.post.domain.Post;

import jakarta.persistence.*;
import lombok.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.example.spot.legacy.repository;
package com.example.spot.comment.domain;

import com.example.spot.legacy.domain.PostComment;
import com.example.spot.legacy.repository.querydsl.PostCommentRepositoryCustom;
import org.springframework.data.jpa.repository.JpaRepository;

public interface PostCommentRepository extends JpaRepository<PostComment, Long>, PostCommentRepositoryCustom {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package com.example.spot.legacy.repository.querydsl;

import com.example.spot.legacy.domain.PostComment;
package com.example.spot.comment.domain;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package com.example.spot.legacy.domain;
package com.example.spot.comment.domain.association;


import com.example.spot.refactor.common.entity.BaseEntity;
import com.example.spot.refactor.member.domain.Member;
import com.example.spot.comment.domain.PostComment;
import com.example.spot.common.entity.BaseEntity;
import com.example.spot.member.domain.Member;

import jakarta.persistence.*;
import lombok.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.example.spot.legacy.repository;
package com.example.spot.comment.domain.association;

import com.example.spot.legacy.domain.LikedPostComment;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package com.example.spot.legacy.repository.querydsl.impl;
package com.example.spot.comment.infrastructure;

import static com.example.spot.legacy.domain.QPostComment.*;

import com.example.spot.legacy.domain.PostComment;
import com.example.spot.legacy.repository.querydsl.PostCommentRepositoryCustom;
import static com.example.spot.comment.domain.QPostComment.*;

import com.example.spot.comment.domain.PostComment;
import com.example.spot.comment.domain.PostCommentRepositoryCustom;
import com.querydsl.jpa.impl.JPAQueryFactory;
import lombok.RequiredArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.legacy.web.dto.post;
package com.example.spot.comment.presentation.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.example.spot.legacy.web.dto.post;
package com.example.spot.comment.presentation.dto;

import com.example.spot.legacy.domain.PostComment;
import com.example.spot.comment.domain.PostComment;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.example.spot.legacy.web.dto.post;
package com.example.spot.comment.presentation.dto;

import com.example.spot.legacy.domain.PostComment;
import com.example.spot.comment.domain.PostComment;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.legacy.web.dto.post;
package com.example.spot.comment.presentation.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AccessLevel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.legacy.web.dto.post;
package com.example.spot.comment.presentation.dto;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.example.spot.refactor.common.api;
package com.example.spot.common.api;

import com.example.spot.refactor.common.api.code.BaseCode;
import com.example.spot.refactor.common.api.code.status.ErrorStatus;
import com.example.spot.refactor.common.api.code.status.SuccessStatus;
import com.example.spot.common.api.code.BaseCode;
import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.code.status.SuccessStatus;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.refactor.common.api.code;
package com.example.spot.common.api.code;


public interface BaseCode {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.refactor.common.api.code;
package com.example.spot.common.api.code;

public interface BaseErrorCode {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.refactor.common.api.code;
package com.example.spot.common.api.code;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.refactor.common.api.code;
package com.example.spot.common.api.code;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.example.spot.refactor.common.api.code.status;
package com.example.spot.common.api.code.status;

import com.example.spot.refactor.common.api.code.BaseErrorCode;
import com.example.spot.refactor.common.api.code.ErrorReasonDTO;
import com.example.spot.common.api.code.BaseErrorCode;
import com.example.spot.common.api.code.ErrorReasonDTO;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.example.spot.refactor.common.api.code.status;
package com.example.spot.common.api.code.status;

import com.example.spot.refactor.common.api.code.BaseCode;
import com.example.spot.refactor.common.api.code.ReasonDTO;
import com.example.spot.common.api.code.BaseCode;
import com.example.spot.common.api.code.ReasonDTO;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.example.spot.refactor.common.api.exception;
package com.example.spot.common.api.exception;

import com.example.spot.refactor.common.api.ApiResponse;
import com.example.spot.refactor.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.ApiResponse;
import com.example.spot.common.api.code.status.ErrorStatus;
import io.sentry.Sentry;
import jakarta.validation.ConstraintViolationException;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.example.spot.refactor.common.api.exception;
package com.example.spot.common.api.exception;

import com.example.spot.refactor.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.code.status.ErrorStatus;
import lombok.Getter;
import lombok.Setter;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.example.spot.common.api.exception.handler;

import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.exception.GeneralException;

public class MemberHandler extends GeneralException {

public MemberHandler(ErrorStatus code) {
super(code);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.example.spot.common.api.exception.handler;

import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.exception.GeneralException;

public class NotificationHandler extends GeneralException {

public NotificationHandler(ErrorStatus code) {
super(code);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.example.spot.common.api.exception.handler;

import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.exception.GeneralException;

public class PostHandler extends GeneralException {

public PostHandler(ErrorStatus code) {
super(code);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.example.spot.common.api.exception.handler;

import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.exception.GeneralException;

public class S3Handler extends GeneralException {

public S3Handler(ErrorStatus code) {
super(code);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.example.spot.common.api.exception.handler;

import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.exception.GeneralException;

public class StudyHandler extends GeneralException {

public StudyHandler(ErrorStatus status){
super(status);
}


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

import com.example.spot.legacy.web.dto.admin.AdminResponseDTO;
import com.example.spot.common.presentation.dto.admin.AdminResponseDTO;

public interface AdminService {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.example.spot.legacy.service.admin;

import com.example.spot.refactor.common.api.code.status.ErrorStatus;
import com.example.spot.refactor.common.api.exception.handler.MemberHandler;
import com.example.spot.refactor.member.domain.Member;
import com.example.spot.refactor.member.domain.MemberRepository;
import com.example.spot.refactor.member.domain.auth.RefreshTokenRepository;
import com.example.spot.refactor.common.security.utils.SecurityUtils;
import com.example.spot.legacy.web.dto.admin.AdminResponseDTO;
package com.example.spot.common.application.admin;

import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.exception.handler.MemberHandler;
import com.example.spot.member.domain.Member;
import com.example.spot.member.domain.MemberRepository;
import com.example.spot.member.domain.auth.RefreshTokenRepository;
import com.example.spot.common.security.utils.SecurityUtils;
import com.example.spot.common.presentation.dto.admin.AdminResponseDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.legacy.service.message;
package com.example.spot.common.application.message;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.example.spot.legacy.service.message;
package com.example.spot.common.application.message;

import com.example.spot.refactor.common.api.code.status.ErrorStatus;
import com.example.spot.refactor.common.api.exception.handler.MemberHandler;
import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.exception.handler.MemberHandler;
import jakarta.mail.MessagingException;
import jakarta.mail.internet.MimeMessage;
import jakarta.servlet.http.HttpServletRequest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.example.spot.legacy.service.s3;
package com.example.spot.common.application.s3;

import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.model.CannedAccessControlList;
import com.amazonaws.services.s3.model.DeleteObjectRequest;
import com.amazonaws.services.s3.model.ObjectMetadata;
import com.amazonaws.services.s3.model.PutObjectRequest;
import com.amazonaws.util.IOUtils;
import com.example.spot.refactor.common.api.code.status.ErrorStatus;
import com.example.spot.refactor.common.api.exception.handler.S3Handler;
import com.example.spot.legacy.web.dto.util.response.ImageResponse.ImageUploadResponse;
import com.example.spot.legacy.web.dto.util.response.ImageResponse.Images;
import com.example.spot.common.api.code.status.ErrorStatus;
import com.example.spot.common.api.exception.handler.S3Handler;
import com.example.spot.common.presentation.dto.util.response.ImageResponse.ImageUploadResponse;
import com.example.spot.common.presentation.dto.util.response.ImageResponse.Images;
import java.time.LocalDateTime;
import java.util.ArrayList;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.refactor.common.config;
package com.example.spot.common.config;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.refactor.common.config;
package com.example.spot.common.config;

import com.querydsl.jpa.impl.JPAQueryFactory;
import jakarta.persistence.EntityManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.refactor.common.config;
package com.example.spot.common.config;

import com.querydsl.core.annotations.Config;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.example.spot.refactor.common.config;
package com.example.spot.common.config;

import com.example.spot.refactor.study.domain.aggregate.Theme;
import com.example.spot.refactor.study.domain.enums.ThemeType;
import com.example.spot.refactor.study.domain.repository.RegionRepository;
import com.example.spot.refactor.study.domain.aggregate.Region;
import com.example.spot.refactor.study.domain.repository.ThemeRepository;
import com.example.spot.study.domain.aggregate.Theme;
import com.example.spot.study.domain.enums.ThemeType;
import com.example.spot.study.domain.repository.RegionRepository;
import com.example.spot.study.domain.aggregate.Region;
import com.example.spot.study.domain.repository.ThemeRepository;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.refactor.common.config;
package com.example.spot.common.config;

import java.nio.charset.Charset;
import org.springframework.boot.web.client.RestTemplateBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.refactor.common.config;
package com.example.spot.common.config;

import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.refactor.common.config;
package com.example.spot.common.config;

import io.sentry.Sentry;
import jakarta.annotation.PostConstruct;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.refactor.common.config;
package com.example.spot.common.config;

import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.models.Components;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.spot.refactor.common.config;
package com.example.spot.common.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.example.spot.refactor.common.config;
package com.example.spot.common.config;


import com.example.spot.refactor.common.security.filters.JwtAuthenticationFilter;
import com.example.spot.refactor.common.security.oauth.CustomOAuth2UserService;
import com.example.spot.refactor.common.security.oauth.CustomOAuthSuccessHandler;
import com.example.spot.refactor.common.security.utils.JwtTokenProvider;
import com.example.spot.refactor.member.application.MemberService;
import com.example.spot.refactor.member.application.UserDetailsServiceCustom;
import com.example.spot.common.security.filters.JwtAuthenticationFilter;
import com.example.spot.common.security.oauth.CustomOAuth2UserService;
import com.example.spot.common.security.oauth.CustomOAuthSuccessHandler;
import com.example.spot.common.security.utils.JwtTokenProvider;
import com.example.spot.member.application.MemberService;
import com.example.spot.member.application.UserDetailsServiceCustom;
import lombok.RequiredArgsConstructor;

import org.springframework.context.annotation.Bean;
Expand Down
Loading