Skip to content

Commit

Permalink
chore: 패키지 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
SangWoon123 committed Apr 6, 2024
1 parent 0d6ef71 commit 47b73ee
Show file tree
Hide file tree
Showing 31 changed files with 111 additions and 102 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gdsc.todo.history.api;
package com.gdsc.todo.domain.history.api;

import lombok.Getter;
import org.springframework.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.gdsc.todo.history.api;
package com.gdsc.todo.domain.history.api;

import com.gdsc.todo.domain.history.dto.TodoHistoryFeedRequest;
import com.gdsc.todo.domain.history.dto.TodoHistoryResponse;
import com.gdsc.todo.global.details.CustomUser;
import com.gdsc.todo.history.dto.TodoHistoryFeedRequest;
import com.gdsc.todo.history.dto.TodoHistoryResponse;
import com.gdsc.todo.history.service.TodoHistoryService;
import com.gdsc.todo.domain.history.service.TodoHistoryService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gdsc.todo.history.domain;
package com.gdsc.todo.domain.history.domain;

public enum Emotion {
HAPPY("Happy"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.gdsc.todo.history.domain;
package com.gdsc.todo.domain.history.domain;

import com.gdsc.todo.global.audit.BaseEntityTIme;
import com.gdsc.todo.history.repository.TodoHistoryRepository;
import com.gdsc.todo.task.domain.Todo;
import com.gdsc.todo.user.domain.User;
import com.gdsc.todo.domain.history.repository.TodoHistoryRepository;
import com.gdsc.todo.domain.task.domain.Todo;
import com.gdsc.todo.domain.user.domain.User;
import jakarta.persistence.*;
import lombok.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.gdsc.todo.history.dto;
package com.gdsc.todo.domain.history.dto;

import com.gdsc.todo.history.domain.Emotion;
import com.gdsc.todo.history.domain.TodoHistory;
import com.gdsc.todo.domain.history.domain.Emotion;
import com.gdsc.todo.domain.history.domain.TodoHistory;
import lombok.*;

@Getter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.gdsc.todo.history.dto;
package com.gdsc.todo.domain.history.dto;

import com.gdsc.todo.history.domain.Emotion;
import com.gdsc.todo.history.domain.TodoHistory;
import com.gdsc.todo.task.dto.TodoResponse;
import com.gdsc.todo.domain.history.domain.Emotion;
import com.gdsc.todo.domain.history.domain.TodoHistory;
import com.gdsc.todo.domain.task.dto.TodoResponse;
import lombok.*;

import java.time.LocalDate;
Expand All @@ -21,7 +21,7 @@ public class TodoHistoryResponse {
private Emotion emotion;
private List<TodoResponse> todos;

public static TodoHistoryResponse from(TodoHistory history,List<TodoResponse> todos){
public static TodoHistoryResponse from(TodoHistory history, List<TodoResponse> todos){
return TodoHistoryResponse.builder()
.id(history.getId())
.day(history.getDay())
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.gdsc.todo.history.repository;
package com.gdsc.todo.domain.history.repository;

import com.gdsc.todo.history.domain.TodoHistory;
import com.gdsc.todo.user.domain.User;
import com.gdsc.todo.domain.history.domain.TodoHistory;
import com.gdsc.todo.domain.user.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.gdsc.todo.history.service;

package com.gdsc.todo.domain.history.service;

import com.gdsc.todo.domain.history.domain.TodoHistory;
import com.gdsc.todo.domain.history.dto.TodoHistoryFeedRequest;
import com.gdsc.todo.domain.history.dto.TodoHistoryResponse;
import com.gdsc.todo.domain.history.repository.TodoHistoryRepository;
import com.gdsc.todo.domain.task.domain.Todo;
import com.gdsc.todo.domain.task.dto.TodoResponse;
import com.gdsc.todo.domain.task.repository.TodoRepository;
import com.gdsc.todo.domain.user.domain.User;
import com.gdsc.todo.domain.user.repository.UserRepository;
import com.gdsc.todo.global.details.CustomUser;
import com.gdsc.todo.history.domain.TodoHistory;
import com.gdsc.todo.history.dto.TodoHistoryFeedRequest;
import com.gdsc.todo.history.dto.TodoHistoryResponse;
import com.gdsc.todo.history.repository.TodoHistoryRepository;
import com.gdsc.todo.task.domain.Todo;
import com.gdsc.todo.task.dto.TodoResponse;
import com.gdsc.todo.task.repository.TodoRepository;
import com.gdsc.todo.user.domain.User;
import com.gdsc.todo.user.repository.UserRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gdsc.todo.quote;
package com.gdsc.todo.domain.quote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.gdsc.todo.quote.api;
package com.gdsc.todo.domain.quote.api;

import com.gdsc.todo.quote.service.QuoteService;
import com.gdsc.todo.domain.quote.service.QuoteService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.gdsc.todo.quote.service;
package com.gdsc.todo.domain.quote.service;

import com.gdsc.todo.quote.QuoteClient;
import com.gdsc.todo.domain.quote.QuoteClient;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
package com.gdsc.todo.task.api;
package com.gdsc.todo.domain.task.api;

import com.gdsc.todo.global.details.CustomUser;
import com.gdsc.todo.task.dto.TodoRequest;
import com.gdsc.todo.task.dto.TodoResponse;
import com.gdsc.todo.task.service.TodoService;
import com.gdsc.todo.domain.task.dto.TodoRequest;
import com.gdsc.todo.domain.task.dto.TodoResponse;
import com.gdsc.todo.domain.task.service.TodoService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.*;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.gdsc.todo.task.domain;
package com.gdsc.todo.domain.task.domain;

import com.gdsc.todo.domain.history.domain.TodoHistory;
import com.gdsc.todo.global.audit.BaseEntityTIme;
import com.gdsc.todo.history.domain.TodoHistory;
import com.gdsc.todo.user.domain.User;
import com.gdsc.todo.domain.user.domain.User;
import jakarta.persistence.*;
import lombok.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gdsc.todo.task.dto;
package com.gdsc.todo.domain.task.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.gdsc.todo.task.dto;
package com.gdsc.todo.domain.task.dto;

import com.gdsc.todo.task.domain.Todo;
import com.gdsc.todo.domain.task.domain.Todo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.gdsc.todo.task.repository;
package com.gdsc.todo.domain.task.repository;

import com.gdsc.todo.task.domain.Todo;
import com.gdsc.todo.user.domain.User;
import com.gdsc.todo.domain.task.domain.Todo;
import com.gdsc.todo.domain.user.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.gdsc.todo.task.service;
package com.gdsc.todo.domain.task.service;

import com.gdsc.todo.domain.task.domain.Todo;
import com.gdsc.todo.domain.task.repository.TodoRepository;
import com.gdsc.todo.domain.user.repository.UserRepository;
import com.gdsc.todo.global.details.CustomUser;
import com.gdsc.todo.history.service.TodoHistoryService;
import com.gdsc.todo.task.domain.Todo;
import com.gdsc.todo.task.dto.TodoRequest;
import com.gdsc.todo.task.dto.TodoResponse;
import com.gdsc.todo.task.repository.TodoRepository;
import com.gdsc.todo.user.domain.User;
import com.gdsc.todo.user.repository.UserRepository;
import com.gdsc.todo.domain.history.service.TodoHistoryService;
import com.gdsc.todo.domain.task.dto.TodoRequest;
import com.gdsc.todo.domain.task.dto.TodoResponse;
import com.gdsc.todo.domain.user.domain.User;
import lombok.RequiredArgsConstructor;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gdsc.todo.user.api;
package com.gdsc.todo.domain.user.api;

import com.gdsc.todo.global.details.CustomUser;
import io.swagger.v3.oas.annotations.Operation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gdsc.todo.user.domain;
package com.gdsc.todo.domain.user.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.gdsc.todo.user.domain;
package com.gdsc.todo.domain.user.domain;

import com.gdsc.todo.domain.history.domain.TodoHistory;
import com.gdsc.todo.domain.task.domain.Todo;
import com.gdsc.todo.global.audit.BaseEntityTIme;
import com.gdsc.todo.global.details.Role;
import com.gdsc.todo.history.domain.TodoHistory;
import com.gdsc.todo.task.domain.Todo;
import jakarta.persistence.*;
import lombok.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gdsc.todo.user.dto;
package com.gdsc.todo.domain.user.dto;

import com.gdsc.todo.global.details.Role;
import jakarta.persistence.EnumType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gdsc.todo.user.dto;
package com.gdsc.todo.domain.user.dto;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.gdsc.todo.user.repository;
package com.gdsc.todo.domain.user.repository;

import com.gdsc.todo.user.domain.SocialType;
import com.gdsc.todo.user.domain.User;
import com.gdsc.todo.domain.user.domain.SocialType;
import com.gdsc.todo.domain.user.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.gdsc.todo.user.service;
package com.gdsc.todo.domain.user.service;

import com.gdsc.todo.domain.user.repository.UserRepository;
import com.gdsc.todo.global.details.Role;
import com.gdsc.todo.user.domain.User;
import com.gdsc.todo.user.repository.UserRepository;
import com.gdsc.todo.domain.user.domain.User;
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,7 +1,7 @@
package com.gdsc.todo.global.details;

import com.gdsc.todo.user.domain.User;
import com.gdsc.todo.user.repository.UserRepository;
import com.gdsc.todo.domain.user.domain.User;
import com.gdsc.todo.domain.user.repository.UserRepository;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.userdetails.UserDetails;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.gdsc.todo.global.oauth;

import com.gdsc.todo.user.domain.SocialType;
import com.gdsc.todo.user.domain.User;
import com.gdsc.todo.user.repository.UserRepository;
import com.gdsc.todo.domain.user.domain.SocialType;
import com.gdsc.todo.domain.user.domain.User;
import com.gdsc.todo.domain.user.repository.UserRepository;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import com.gdsc.todo.global.oauth.userInfo.KakaoOAuth2UserInfo;
import com.gdsc.todo.global.oauth.userInfo.NaverOAuth2UserInfo;
import com.gdsc.todo.global.oauth.userInfo.OAuth2UserInfo;
import com.gdsc.todo.user.domain.SocialType;
import com.gdsc.todo.user.domain.User;
import com.gdsc.todo.domain.user.domain.SocialType;
import com.gdsc.todo.domain.user.domain.User;
import lombok.Builder;
import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.gdsc.todo.global.config.security.jwt.dto.TokenResponse;
import com.gdsc.todo.global.config.security.jwt.service.TokenCacheService;
import com.gdsc.todo.global.oauth.CustomOAuth2User;
import com.gdsc.todo.user.repository.UserRepository;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.gdsc.todo.service;

import com.gdsc.todo.global.details.Role;
import com.gdsc.todo.history.domain.Emotion;
import com.gdsc.todo.history.domain.TodoHistory;
import com.gdsc.todo.history.repository.TodoHistoryRepository;
import com.gdsc.todo.history.service.TodoHistoryService;
import com.gdsc.todo.task.domain.Todo;
import com.gdsc.todo.task.repository.TodoRepository;
import com.gdsc.todo.user.domain.SocialType;
import com.gdsc.todo.user.domain.User;
import com.gdsc.todo.user.repository.UserRepository;
import com.gdsc.todo.domain.history.domain.Emotion;
import com.gdsc.todo.domain.history.domain.TodoHistory;
import com.gdsc.todo.domain.history.repository.TodoHistoryRepository;
import com.gdsc.todo.domain.history.service.TodoHistoryService;
import com.gdsc.todo.domain.task.domain.Todo;
import com.gdsc.todo.domain.task.repository.TodoRepository;
import com.gdsc.todo.domain.user.domain.SocialType;
import com.gdsc.todo.domain.user.domain.User;
import com.gdsc.todo.domain.user.repository.UserRepository;
import org.aspectj.lang.annotation.After;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.gdsc.todo.service;

import com.gdsc.todo.global.details.Role;
import com.gdsc.todo.task.domain.Todo;
import com.gdsc.todo.task.repository.TodoRepository;
import com.gdsc.todo.task.service.TodoService;
import com.gdsc.todo.user.domain.SocialType;
import com.gdsc.todo.user.domain.User;
import com.gdsc.todo.user.repository.UserRepository;
import com.gdsc.todo.domain.task.domain.Todo;
import com.gdsc.todo.domain.task.repository.TodoRepository;
import com.gdsc.todo.domain.task.service.TodoService;
import com.gdsc.todo.domain.user.domain.SocialType;
import com.gdsc.todo.domain.user.domain.User;
import com.gdsc.todo.domain.user.repository.UserRepository;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
Expand Down
Loading

0 comments on commit 47b73ee

Please sign in to comment.