Skip to content

Commit

Permalink
[BUILD SUCCESS] 패키지 구조 변경 (#70)
Browse files Browse the repository at this point in the history
* refactor: Email 도메인 패키지 변경

* refactor: Cafe 도메인 패키지 변경

* refactor: Email DTO, Service 패키지 변경

* refactor: Cafe DTO, Service 패키지 변경

* refactor: member domain, DTO, Repository 패키지 변경

* refactor: Review domain, DTO, Repository 패키지 변경

* refactor: domain, DTO, Repository 패키지 변경

* fix: Qclass 관련 오류 수정
  • Loading branch information
robinjoon authored Apr 9, 2024
1 parent deefbb3 commit 657a18d
Show file tree
Hide file tree
Showing 142 changed files with 444 additions and 441 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import com.example.demo.domain.oauth2.KakaoOAuth2TokenRequester;
import com.example.demo.domain.oauth2.NaverOAuth2ProfileRequester;
import com.example.demo.domain.oauth2.NaverOAuth2TokenRequester;
import com.example.demo.service.OAuth2ServiceImpl;
import com.example.demo.service.oauth2.OAuth2ServiceImpl;

@Configuration
public class OAuthServiceConfig {
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/com/example/demo/config/package-info.java

This file was deleted.

8 changes: 4 additions & 4 deletions src/main/java/com/example/demo/controller/CafeController.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.domain.auth.CafegoryTokenManager;
import com.example.demo.dto.CafeResponse;
import com.example.demo.dto.CafeSearchRequest;
import com.example.demo.dto.CafeSearchResponse;
import com.example.demo.dto.PagedResponse;
import com.example.demo.service.CafeQueryService;
import com.example.demo.dto.cafe.CafeResponse;
import com.example.demo.dto.cafe.CafeSearchRequest;
import com.example.demo.dto.cafe.CafeSearchResponse;
import com.example.demo.service.cafe.CafeQueryService;

import lombok.RequiredArgsConstructor;

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/example/demo/controller/MailController.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import org.springframework.web.bind.annotation.RequestHeader;

import com.example.demo.domain.auth.CafegoryTokenManager;
import com.example.demo.dto.EmailSendRequest;
import com.example.demo.dto.EmailTemplateResponse;
import com.example.demo.service.MailService;
import com.example.demo.dto.email.EmailSendRequest;
import com.example.demo.dto.email.EmailTemplateResponse;
import com.example.demo.service.email.MailService;

import lombok.RequiredArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import com.example.demo.dto.auth.RefreshRequest;
import com.example.demo.dto.oauth2.KakaoOAuth2TokenRequest;
import com.example.demo.dto.oauth2.NaverOAuth2TokenRequest;
import com.example.demo.service.AuthService;
import com.example.demo.service.OAuth2Service;
import com.example.demo.service.auth.AuthService;
import com.example.demo.service.oauth2.OAuth2Service;

import lombok.RequiredArgsConstructor;

Expand Down
14 changes: 7 additions & 7 deletions src/main/java/com/example/demo/controller/ReviewController.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

import com.example.demo.domain.auth.CafegoryTokenManager;
import com.example.demo.dto.PagedResponse;
import com.example.demo.dto.ReviewResponse;
import com.example.demo.dto.ReviewSaveRequest;
import com.example.demo.dto.ReviewSearchRequest;
import com.example.demo.dto.ReviewSearchResponse;
import com.example.demo.dto.ReviewUpdateRequest;
import com.example.demo.service.ReviewQueryService;
import com.example.demo.service.ReviewService;
import com.example.demo.dto.review.ReviewResponse;
import com.example.demo.dto.review.ReviewSaveRequest;
import com.example.demo.dto.review.ReviewSearchRequest;
import com.example.demo.dto.review.ReviewSearchResponse;
import com.example.demo.dto.review.ReviewUpdateRequest;
import com.example.demo.service.review.ReviewQueryService;
import com.example.demo.service.review.ReviewService;

import lombok.RequiredArgsConstructor;

Expand Down
34 changes: 17 additions & 17 deletions src/main/java/com/example/demo/controller/StudyOnceController.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.domain.auth.CafegoryTokenManager;
import com.example.demo.dto.CafeSearchResponse;
import com.example.demo.dto.PagedResponse;
import com.example.demo.dto.StudyMembersResponse;
import com.example.demo.dto.StudyOnceCommentRequest;
import com.example.demo.dto.StudyOnceCommentResponse;
import com.example.demo.dto.StudyOnceCommentUpdateRequest;
import com.example.demo.dto.StudyOnceCommentsSearchResponse;
import com.example.demo.dto.StudyOnceCreateRequest;
import com.example.demo.dto.StudyOnceJoinResult;
import com.example.demo.dto.StudyOnceSearchRequest;
import com.example.demo.dto.StudyOnceSearchResponse;
import com.example.demo.dto.UpdateAttendanceRequest;
import com.example.demo.dto.UpdateAttendanceResponse;
import com.example.demo.dto.cafe.CafeSearchResponse;
import com.example.demo.dto.study.StudyMembersResponse;
import com.example.demo.dto.study.StudyOnceCommentRequest;
import com.example.demo.dto.study.StudyOnceCommentResponse;
import com.example.demo.dto.study.StudyOnceCommentUpdateRequest;
import com.example.demo.dto.study.StudyOnceCommentsSearchResponse;
import com.example.demo.dto.study.StudyOnceCreateRequest;
import com.example.demo.dto.study.StudyOnceJoinResult;
import com.example.demo.dto.study.StudyOnceSearchRequest;
import com.example.demo.dto.study.StudyOnceSearchResponse;
import com.example.demo.dto.study.UpdateAttendanceRequest;
import com.example.demo.dto.study.UpdateAttendanceResponse;
import com.example.demo.exception.CafegoryException;
import com.example.demo.service.CafeQueryService;
import com.example.demo.service.StudyOnceCommentQueryService;
import com.example.demo.service.StudyOnceCommentService;
import com.example.demo.service.StudyOnceQAndAQueryService;
import com.example.demo.service.StudyOnceService;
import com.example.demo.service.cafe.CafeQueryService;
import com.example.demo.service.study.StudyOnceCommentQueryService;
import com.example.demo.service.study.StudyOnceCommentService;
import com.example.demo.service.study.StudyOnceQAndAQueryService;
import com.example.demo.service.study.StudyOnceService;

import lombok.RequiredArgsConstructor;

Expand Down
6 changes: 0 additions & 6 deletions src/main/java/com/example/demo/controller/package-info.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.cafe;

import javax.persistence.Embeddable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.cafe;

import java.time.DayOfWeek;
import java.time.LocalDateTime;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.cafe;

import java.time.DayOfWeek;
import java.time.LocalDateTime;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.cafe;

public interface Cafe {
String showFullAddress();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.cafe;

import java.time.LocalDateTime;
import java.util.ArrayList;
Expand All @@ -14,6 +14,9 @@
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.example.demo.domain.review.ReviewImpl;
import com.example.demo.domain.study.StudyOnceImpl;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.cafe;

import static com.example.demo.exception.ExceptionType.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.cafe;

import java.util.Arrays;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.cafe;

import javax.persistence.Column;
import javax.persistence.ConstraintMode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.cafe;

import java.util.Arrays;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.cafe;

import java.time.DayOfWeek;
import java.time.LocalDateTime;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.cafe;

import javax.persistence.ConstraintMode;
import javax.persistence.Entity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.email;

public interface EmailSender {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.email;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.email;

import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.example.demo.domain;
package com.example.demo.domain.member;

import java.util.List;

import com.example.demo.domain.study.StudyMember;

public interface Member {
Long getId();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.member;

import static com.example.demo.exception.ExceptionType.*;

Expand All @@ -18,6 +18,7 @@
import javax.persistence.Table;
import javax.persistence.Transient;

import com.example.demo.domain.study.StudyMember;
import com.example.demo.exception.CafegoryException;

import lombok.AccessLevel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.member;

import javax.persistence.Column;
import javax.persistence.Entity;
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/com/example/demo/domain/package-info.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.review;

public interface Review {
void updateContent(String content);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.review;

import static com.example.demo.exception.ExceptionType.*;

Expand All @@ -15,6 +15,8 @@

import org.thymeleaf.util.StringUtils;

import com.example.demo.domain.cafe.CafeImpl;
import com.example.demo.domain.member.MemberImpl;
import com.example.demo.exception.CafegoryException;

import lombok.AccessLevel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.study;

public enum Attendance {
YES(true), NO(false);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.study;

import java.time.LocalDateTime;

Expand All @@ -14,6 +14,9 @@
import javax.persistence.MapsId;
import javax.persistence.Table;

import com.example.demo.domain.BaseEntity;
import com.example.demo.domain.member.MemberImpl;

import lombok.AccessLevel;
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.demo.domain;
package com.example.demo.domain.study;

import java.io.Serializable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
package com.example.demo.domain;
package com.example.demo.domain.study;

import java.time.LocalDateTime;

import com.example.demo.domain.cafe.CafeImpl;
import com.example.demo.domain.member.Member;
import com.example.demo.domain.member.MemberImpl;

public interface StudyOnce {

void tryJoin(Member memberThatExpectedToJoin, LocalDateTime requestTime);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.study;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -15,6 +15,9 @@
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.example.demo.domain.BaseEntity;
import com.example.demo.domain.member.MemberImpl;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.domain;
package com.example.demo.domain.study;

import static com.example.demo.exception.ExceptionType.*;

Expand All @@ -20,6 +20,9 @@
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.example.demo.domain.cafe.CafeImpl;
import com.example.demo.domain.member.Member;
import com.example.demo.domain.member.MemberImpl;
import com.example.demo.exception.CafegoryException;
import com.example.demo.exception.ExceptionType;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.dto;
package com.example.demo.dto.cafe;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.dto;
package com.example.demo.dto.cafe;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
package com.example.demo.dto;
package com.example.demo.dto.cafe;

import java.util.List;

import com.example.demo.dto.review.ReviewResponse;
import com.example.demo.dto.study.CanMakeStudyOnceResponse;
import com.example.demo.dto.study.StudyOnceForCafeResponse;

import lombok.Builder;
import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package com.example.demo.dto;
package com.example.demo.dto.cafe;

import com.example.demo.dto.PagedRequest;

import lombok.Getter;
import lombok.Setter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.dto;
package com.example.demo.dto.cafe;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.demo.dto;
package com.example.demo.dto.cafe;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
Expand Down
Loading

0 comments on commit 657a18d

Please sign in to comment.