Skip to content

Commit

Permalink
[refactor/InhaBas#179] signup 관련 구조 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
whitem4rk committed Dec 2, 2023
1 parent 67292cc commit 7aeff72
Show file tree
Hide file tree
Showing 25 changed files with 58 additions and 59 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.inhabas.api.domain.questionaire.domain;
package com.inhabas.api.domain.questionnaire.domain;

import lombok.AccessLevel;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.inhabas.api.domain.questionaire.dto;
package com.inhabas.api.domain.questionnaire.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.inhabas.api.domain.questionaire.repository;
package com.inhabas.api.domain.questionnaire.repository;

import com.inhabas.api.domain.questionaire.domain.Questionnaire;
import com.inhabas.api.domain.questionnaire.domain.Questionnaire;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.inhabas.api.domain.questionnaire.usecase;

import com.inhabas.api.domain.questionnaire.dto.QuestionnaireDto;

import java.util.List;

public interface QuestionnaireService {

List<QuestionnaireDto> getQuestionnaire();
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.inhabas.api.domain.questionaire.usecase;
package com.inhabas.api.domain.questionnaire.usecase;

import com.inhabas.api.domain.questionaire.repository.QuestionnaireRepository;
import com.inhabas.api.domain.questionaire.dto.QuestionnaireDto;
import com.inhabas.api.domain.questionnaire.repository.QuestionnaireRepository;
import com.inhabas.api.domain.questionnaire.dto.QuestionnaireDto;
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,8 +1,8 @@
package com.inhabas.api.domain.member.domain.entity;
package com.inhabas.api.domain.signUp.domain.entity;

import com.inhabas.api.auth.domain.oauth2.member.domain.entity.Member;
import com.inhabas.api.domain.BaseEntity;
import com.inhabas.api.domain.questionaire.domain.Questionnaire;
import com.inhabas.api.domain.questionnaire.domain.Questionnaire;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.inhabas.api.domain.member.domain.exception;
package com.inhabas.api.domain.signUp.domain.exception;

import org.springframework.security.access.AccessDeniedException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.inhabas.api.domain.member.domain.exception;
package com.inhabas.api.domain.signUp.domain.exception;

import org.springframework.security.access.AccessDeniedException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.inhabas.api.domain.member.dto;
package com.inhabas.api.domain.signUp.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.inhabas.api.domain.member.dto;
package com.inhabas.api.domain.signUp.dto;

import com.inhabas.api.auth.domain.oauth2.member.domain.valueObject.MemberType;
import io.swagger.v3.oas.annotations.media.Schema;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.inhabas.api.domain.member.repository;
package com.inhabas.api.domain.signUp.repository;

import com.inhabas.api.domain.member.domain.entity.Answer;
import com.inhabas.api.domain.signUp.domain.entity.Answer;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
Expand All @@ -9,5 +9,4 @@ public interface AnswerRepository extends JpaRepository<Answer, Long> {

List<Answer> findByMember_Id(Long memberId);

boolean existsByMember_Id(Long memberId);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.inhabas.api.domain.member.usecase;
package com.inhabas.api.domain.signUp.usecase;

import com.inhabas.api.domain.member.dto.AnswerDto;
import com.inhabas.api.domain.signUp.dto.AnswerDto;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.inhabas.api.domain.member.usecase;
package com.inhabas.api.domain.signUp.usecase;

import com.inhabas.api.auth.domain.oauth2.member.domain.entity.Member;
import com.inhabas.api.auth.domain.oauth2.member.domain.exception.MemberNotFoundException;
import com.inhabas.api.auth.domain.oauth2.member.repository.MemberRepository;
import com.inhabas.api.domain.member.domain.entity.Answer;
import com.inhabas.api.domain.member.dto.AnswerDto;
import com.inhabas.api.domain.member.repository.AnswerRepository;
import com.inhabas.api.domain.questionaire.domain.Questionnaire;
import com.inhabas.api.domain.questionaire.repository.QuestionnaireRepository;
import com.inhabas.api.domain.signUp.domain.entity.Answer;
import com.inhabas.api.domain.signUp.dto.AnswerDto;
import com.inhabas.api.domain.signUp.repository.AnswerRepository;
import com.inhabas.api.domain.questionnaire.domain.Questionnaire;
import com.inhabas.api.domain.questionnaire.repository.QuestionnaireRepository;
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,9 +1,9 @@
package com.inhabas.api.domain.member.usecase;
package com.inhabas.api.domain.signUp.usecase;

import com.inhabas.api.auth.domain.oauth2.majorInfo.dto.MajorInfoDto;
import com.inhabas.api.domain.member.dto.AnswerDto;
import com.inhabas.api.domain.member.dto.SignUpDto;
import com.inhabas.api.domain.questionaire.dto.QuestionnaireDto;
import com.inhabas.api.domain.signUp.dto.AnswerDto;
import com.inhabas.api.domain.signUp.dto.SignUpDto;
import com.inhabas.api.domain.questionnaire.dto.QuestionnaireDto;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.inhabas.api.domain.member.usecase;
package com.inhabas.api.domain.signUp.usecase;

import com.inhabas.api.auth.domain.oauth2.majorInfo.dto.MajorInfoDto;
import com.inhabas.api.auth.domain.oauth2.majorInfo.usecase.MajorInfoService;
Expand All @@ -12,13 +12,13 @@
import com.inhabas.api.auth.domain.oauth2.member.repository.MemberRepository;
import com.inhabas.api.auth.domain.oauth2.member.security.socialAccount.MemberSocialAccount;
import com.inhabas.api.auth.domain.oauth2.member.security.socialAccount.MemberSocialAccountRepository;
import com.inhabas.api.domain.member.domain.exception.NotWriteAnswersException;
import com.inhabas.api.domain.member.domain.exception.NotWriteProfileException;
import com.inhabas.api.domain.member.dto.AnswerDto;
import com.inhabas.api.domain.member.dto.SignUpDto;
import com.inhabas.api.domain.questionaire.dto.QuestionnaireDto;
import com.inhabas.api.domain.questionaire.usecase.QuestionnaireService;
import com.inhabas.api.domain.signUpSchedule.domain.SignUpScheduler;
import com.inhabas.api.domain.signUp.domain.exception.NotWriteAnswersException;
import com.inhabas.api.domain.signUp.domain.exception.NotWriteProfileException;
import com.inhabas.api.domain.signUp.dto.AnswerDto;
import com.inhabas.api.domain.signUp.dto.SignUpDto;
import com.inhabas.api.domain.questionnaire.dto.QuestionnaireDto;
import com.inhabas.api.domain.questionnaire.usecase.QuestionnaireService;
import com.inhabas.api.domain.signUpSchedule.domain.usecase.SignUpScheduler;
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.inhabas.api.domain.signUpSchedule.domain;
package com.inhabas.api.domain.signUpSchedule.domain.usecase;

public interface SignUpAvailabilityChecker {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.inhabas.api.domain.signUpSchedule.domain;
package com.inhabas.api.domain.signUpSchedule.domain.usecase;

import com.inhabas.api.domain.signUpSchedule.dto.SignUpScheduleDto;
import java.time.LocalDateTime;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.inhabas.api.domain.signUpSchedule.domain;
package com.inhabas.api.domain.signUpSchedule.domain.usecase;

import com.inhabas.api.domain.signUpSchedule.dto.SignUpScheduleDto;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.inhabas.api.domain.signUpSchedule.domain;
package com.inhabas.api.domain.signUpSchedule.domain.usecase;

import com.inhabas.api.domain.signUpSchedule.domain.entity.SignUpSchedule;
import com.inhabas.api.domain.signUpSchedule.dto.SignUpScheduleDto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import com.inhabas.api.auth.domain.oauth2.member.domain.service.MemberService;
import com.inhabas.api.auth.domain.oauth2.member.dto.*;
import com.inhabas.api.domain.member.dto.AnswerDto;
import com.inhabas.api.domain.member.usecase.AnswerService;
import com.inhabas.api.domain.signUp.dto.AnswerDto;
import com.inhabas.api.domain.signUp.usecase.AnswerService;
import com.inhabas.api.global.dto.PageInfoDto;
import com.inhabas.api.global.dto.PagedMemberResponseDto;
import io.swagger.v3.oas.annotations.Operation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.inhabas.api.web;

import com.inhabas.api.auth.domain.oauth2.majorInfo.dto.MajorInfoDto;
import com.inhabas.api.domain.member.dto.AnswerDto;
import com.inhabas.api.domain.member.dto.SignUpDto;
import com.inhabas.api.domain.member.usecase.SignUpService;
import com.inhabas.api.domain.questionaire.dto.QuestionnaireDto;
import com.inhabas.api.domain.signUp.dto.AnswerDto;
import com.inhabas.api.domain.signUp.dto.SignUpDto;
import com.inhabas.api.domain.signUp.usecase.SignUpService;
import com.inhabas.api.domain.questionnaire.dto.QuestionnaireDto;
import com.inhabas.api.web.argumentResolver.Authenticated;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Content;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.inhabas.api.web;

import com.inhabas.api.domain.signUpSchedule.dto.SignUpScheduleDto;
import com.inhabas.api.domain.signUpSchedule.domain.SignUpScheduler;
import com.inhabas.api.domain.signUpSchedule.domain.usecase.SignUpScheduler;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.inhabas.api.web.interceptor;

import com.inhabas.api.domain.signUpSchedule.domain.SignUpAvailabilityChecker;
import com.inhabas.api.domain.signUpSchedule.domain.usecase.SignUpAvailabilityChecker;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.inhabas.api.web.interceptor;

import com.inhabas.api.domain.signUpSchedule.domain.SignUpAvailabilityChecker;
import com.inhabas.api.domain.signUpSchedule.domain.usecase.SignUpAvailabilityChecker;
import com.inhabas.api.domain.signUpSchedule.SignUpNotAvailableException;
import lombok.RequiredArgsConstructor;
import org.springframework.web.servlet.HandlerInterceptor;
Expand Down

0 comments on commit 7aeff72

Please sign in to comment.