Skip to content

Commit

Permalink
fix: #34 - 패키지 구조 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
2522001 committed Jun 1, 2024
1 parent b5840cd commit fcafef2
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
import se.issuetrackingsystem.project.domain.Project;
import se.issuetrackingsystem.project.repository.ProjectRepository;
import se.issuetrackingsystem.user.domain.Dev;
import se.issuetrackingsystem.user.domain.ProjectContributor;
import se.issuetrackingsystem.projectContributor.domain.ProjectContributor;
import se.issuetrackingsystem.user.domain.User;
import se.issuetrackingsystem.user.repository.ProjectContributorRepository;
import se.issuetrackingsystem.projectContributor.repository.ProjectContributorRepository;
import se.issuetrackingsystem.user.repository.UserRepository;

import java.time.LocalDateTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import se.issuetrackingsystem.project.dto.ProjectContributorResponse;
import se.issuetrackingsystem.projectContributor.dto.ProjectContributorResponse;
import se.issuetrackingsystem.project.dto.ProjectRequest;
import se.issuetrackingsystem.project.dto.ProjectResponse;
import se.issuetrackingsystem.project.service.ProjectService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import lombok.Getter;
import lombok.NoArgsConstructor;
import se.issuetrackingsystem.user.domain.Admin;
import se.issuetrackingsystem.user.domain.ProjectContributor;
import se.issuetrackingsystem.projectContributor.domain.ProjectContributor;

import java.time.LocalDateTime;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
import se.issuetrackingsystem.common.exception.CustomException;
import se.issuetrackingsystem.common.exception.ErrorCode;
import se.issuetrackingsystem.project.domain.Project;
import se.issuetrackingsystem.project.dto.ProjectContributorResponse;
import se.issuetrackingsystem.projectContributor.dto.ProjectContributorResponse;
import se.issuetrackingsystem.project.dto.ProjectRequest;
import se.issuetrackingsystem.project.dto.ProjectResponse;
import se.issuetrackingsystem.project.repository.ProjectRepository;
import se.issuetrackingsystem.projectContributor.domain.ProjectContributor;
import se.issuetrackingsystem.projectContributor.domain.ProjectContributorPK;
import se.issuetrackingsystem.user.domain.*;
import se.issuetrackingsystem.user.dto.UserResponse;
import se.issuetrackingsystem.user.repository.ProjectContributorRepository;
import se.issuetrackingsystem.projectContributor.repository.ProjectContributorRepository;
import se.issuetrackingsystem.user.repository.UserRepository;

import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

@Service
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package se.issuetrackingsystem.user.domain;
package se.issuetrackingsystem.projectContributor.domain;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import se.issuetrackingsystem.project.domain.Project;
import se.issuetrackingsystem.user.domain.User;

@Entity
@Getter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package se.issuetrackingsystem.user.domain;
package se.issuetrackingsystem.projectContributor.domain;

import jakarta.persistence.Embeddable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package se.issuetrackingsystem.project.dto;
package se.issuetrackingsystem.projectContributor.dto;

import lombok.Getter;
import se.issuetrackingsystem.user.domain.ProjectContributor;
import se.issuetrackingsystem.projectContributor.domain.ProjectContributor;

@Getter
public class ProjectContributorResponse {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package se.issuetrackingsystem.user.repository;
package se.issuetrackingsystem.projectContributor.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import se.issuetrackingsystem.project.domain.Project;
import se.issuetrackingsystem.user.domain.ProjectContributor;
import se.issuetrackingsystem.projectContributor.domain.ProjectContributor;
import se.issuetrackingsystem.user.domain.User;

import java.util.List;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/se/issuetrackingsystem/user/domain/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import jakarta.persistence.*;
import lombok.*;
import se.issuetrackingsystem.projectContributor.domain.ProjectContributor;

import java.time.LocalDateTime;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
import org.springframework.transaction.annotation.Transactional;
import se.issuetrackingsystem.common.exception.CustomException;
import se.issuetrackingsystem.common.exception.ErrorCode;
import se.issuetrackingsystem.project.domain.Project;
import se.issuetrackingsystem.user.domain.*;
import se.issuetrackingsystem.user.dto.LoginRequest;
import se.issuetrackingsystem.user.dto.RegisterRequest;
import se.issuetrackingsystem.user.dto.UserResponse;
import se.issuetrackingsystem.user.repository.ProjectContributorRepository;
import se.issuetrackingsystem.projectContributor.repository.ProjectContributorRepository;
import se.issuetrackingsystem.user.repository.UserRepository;
import se.issuetrackingsystem.user.service.UserService;

import java.util.List;
import java.util.Optional;
Expand All @@ -24,7 +22,6 @@
public class UserService {

private final UserRepository userRepository;
private final ProjectContributorRepository projectContributorRepository;
PasswordEncoder passwordEncoder = new BCryptPasswordEncoder();

@Transactional
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/se/issuetrackingsystem/IssueServiceTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
import se.issuetrackingsystem.issue.service.IssueService;
import se.issuetrackingsystem.project.domain.Project;
import se.issuetrackingsystem.project.repository.ProjectRepository;
import se.issuetrackingsystem.projectContributor.domain.ProjectContributor;
import se.issuetrackingsystem.user.domain.*;
import se.issuetrackingsystem.user.repository.ProjectContributorRepository;
import se.issuetrackingsystem.projectContributor.repository.ProjectContributorRepository;
import se.issuetrackingsystem.user.repository.UserRepository;

import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
import se.issuetrackingsystem.project.dto.ProjectRequest;
import se.issuetrackingsystem.project.dto.ProjectResponse;
import se.issuetrackingsystem.project.repository.ProjectRepository;
import se.issuetrackingsystem.projectContributor.domain.ProjectContributor;
import se.issuetrackingsystem.user.domain.*;
import se.issuetrackingsystem.user.repository.ProjectContributorRepository;
import se.issuetrackingsystem.projectContributor.repository.ProjectContributorRepository;
import se.issuetrackingsystem.user.repository.UserRepository;

import java.util.Arrays;
Expand Down

0 comments on commit fcafef2

Please sign in to comment.