Skip to content

Commit

Permalink
refactor: 발송옵션/질문 패키지 분리 #3
Browse files Browse the repository at this point in the history
  • Loading branch information
623nana committed Aug 6, 2021
1 parent b238686 commit e07ac3c
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static org.springframework.beans.BeanUtils.copyProperties;

import com.nexters.covid.letter.domain.SendOption;
import com.nexters.covid.letter.domain.sendoption.SendOption;
import lombok.Getter;
import lombok.Setter;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

import static org.springframework.beans.BeanUtils.copyProperties;

import com.nexters.covid.letter.domain.Question;
import com.nexters.covid.letter.domain.question.Question;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QuestionResponse {

private Long id;

private String text;

public QuestionResponse(Question source) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.nexters.covid.letter.domain;
package com.nexters.covid.letter.domain.question;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nexters.covid.letter.domain.sendoption.SendOption;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.nexters.covid.letter.domain;
package com.nexters.covid.letter.domain.question;

import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.nexters.covid.letter.domain;
package com.nexters.covid.letter.domain.sendoption;

import com.nexters.covid.letter.domain.question.Question;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.nexters.covid.letter.domain;
package com.nexters.covid.letter.domain.sendoption;

import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import com.nexters.covid.letter.api.dto.QuestionResponse;
import com.nexters.covid.letter.domain.Letter;
import com.nexters.covid.letter.domain.LetterRepository;
import com.nexters.covid.letter.domain.QuestionRepository;
import com.nexters.covid.letter.domain.SendOptionRepository;
import com.nexters.covid.letter.domain.question.QuestionRepository;
import com.nexters.covid.letter.domain.sendoption.SendOptionRepository;
import com.nexters.covid.user.domain.User;
import com.nexters.covid.user.domain.UserRepository;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import static org.assertj.core.api.Assertions.assertThat;

import com.nexters.covid.letter.domain.question.Question;
import com.nexters.covid.letter.domain.question.QuestionRepository;
import java.util.List;
import java.util.stream.Collectors;
import org.junit.jupiter.api.DisplayName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import static org.assertj.core.api.Assertions.assertThat;

import com.nexters.covid.letter.domain.sendoption.SendOption;
import com.nexters.covid.letter.domain.sendoption.SendOptionRepository;
import java.util.List;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
Expand Down

0 comments on commit e07ac3c

Please sign in to comment.