Skip to content

Commit

Permalink
feat: 변경 요구사항 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
younghoondoodoom committed Jan 6, 2024
1 parent 5c7550d commit fe568b5
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import co.kirikiri.auth.service.AuthService;
import co.kirikiri.auth.service.NaverOauthService;
import co.kirikiri.auth.service.dto.OauthRedirectResponse;
import co.kirikiri.auth.service.dto.response.OauthRedirectResponse;
import co.kirikiri.auth.service.dto.request.LoginRequest;
import co.kirikiri.auth.service.dto.request.ReissueTokenRequest;
import co.kirikiri.auth.service.dto.response.AuthenticationResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import co.kirikiri.auth.service.dto.NaverMemberProfileDto;
import co.kirikiri.auth.service.dto.NaverMemberProfileResponseDto;
import co.kirikiri.auth.service.dto.NaverOauthTokenDto;
import co.kirikiri.auth.service.dto.OauthRedirectResponse;
import co.kirikiri.auth.service.dto.response.OauthRedirectResponse;
import co.kirikiri.auth.service.dto.response.AuthenticationResponse;
import co.kirikiri.auth.service.mapper.OauthMapper;
import co.kirikiri.member.domain.Member;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.kirikiri.auth.service.dto;
package co.kirikiri.auth.service.dto.response;

public record OauthRedirectResponse(
String url,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package co.kirikiri.auth.service.mapper;

import co.kirikiri.auth.service.dto.OauthRedirectResponse;
import co.kirikiri.auth.service.dto.response.OauthRedirectResponse;

public class OauthMapper {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package co.kirikiri.common.aop;

import co.kirikiri.common.exception.BadRequestException;
import co.kirikiri.common.exception.DomainException;
import co.kirikiri.common.exception.domain.DomainException;
import co.kirikiri.common.exception.ServerException;
import co.kirikiri.common.exception.UnexpectedDomainException;
import co.kirikiri.common.exception.domain.UnexpectedDomainException;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.kirikiri.common.exception;
package co.kirikiri.common.exception.domain;

public class DomainException extends RuntimeException {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.kirikiri.common.exception;
package co.kirikiri.common.exception.domain;

public class ImageExtensionException extends DomainException {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package co.kirikiri.common.exception;
package co.kirikiri.common.exception.domain;

public class UnexpectedDomainException extends DomainException {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package co.kirikiri.common.type;

import co.kirikiri.common.exception.ImageExtensionException;
import co.kirikiri.common.exception.domain.ImageExtensionException;
import java.util.Arrays;

public enum ImageContentType {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package co.kirikiri.domain.goalroom;

import co.kirikiri.common.exception.UnexpectedDomainException;
import co.kirikiri.common.exception.domain.UnexpectedDomainException;
import co.kirikiri.member.domain.Member;
import jakarta.persistence.CascadeType;
import jakarta.persistence.Embeddable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package co.kirikiri.domain.goalroom;

import co.kirikiri.common.exception.UnexpectedDomainException;
import co.kirikiri.common.exception.domain.UnexpectedDomainException;
import co.kirikiri.member.domain.Member;
import jakarta.persistence.CascadeType;
import jakarta.persistence.Embeddable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package co.kirikiri.domain.goalroom.exception;

import co.kirikiri.common.exception.DomainException;
import co.kirikiri.common.exception.domain.DomainException;

public class GoalRoomException extends DomainException {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package co.kirikiri.domain.roadmap.exception;

import co.kirikiri.common.exception.DomainException;
import co.kirikiri.common.exception.domain.DomainException;

public class RoadmapException extends DomainException {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package co.kirikiri.member.domain;

import co.kirikiri.common.exception.UnexpectedDomainException;
import co.kirikiri.common.exception.domain.UnexpectedDomainException;
import co.kirikiri.member.domain.vo.Password;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package co.kirikiri.member.domain.exception;

import co.kirikiri.common.exception.DomainException;
import co.kirikiri.common.exception.domain.DomainException;

public class MemberException extends DomainException {

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

import co.kirikiri.auth.service.AuthService;
import co.kirikiri.auth.service.NaverOauthService;
import co.kirikiri.auth.service.dto.OauthRedirectResponse;
import co.kirikiri.auth.service.dto.response.OauthRedirectResponse;
import co.kirikiri.auth.service.dto.request.LoginRequest;
import co.kirikiri.auth.service.dto.request.ReissueTokenRequest;
import co.kirikiri.auth.service.dto.response.AuthenticationResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import co.kirikiri.auth.service.dto.NaverMemberProfileDto;
import co.kirikiri.auth.service.dto.NaverMemberProfileResponseDto;
import co.kirikiri.auth.service.dto.NaverOauthTokenDto;
import co.kirikiri.auth.service.dto.OauthRedirectResponse;
import co.kirikiri.auth.service.dto.response.OauthRedirectResponse;
import co.kirikiri.auth.service.dto.response.AuthenticationResponse;
import co.kirikiri.member.domain.Gender;
import co.kirikiri.member.domain.Member;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

import co.kirikiri.common.exception.UnexpectedDomainException;
import co.kirikiri.common.exception.domain.UnexpectedDomainException;
import co.kirikiri.domain.goalroom.vo.GoalRoomName;
import co.kirikiri.domain.goalroom.vo.LimitedMemberCount;
import co.kirikiri.member.domain.EncryptedPassword;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,14 @@ public class GoalRoomAPIFixture {
}

public static ExtractableResponse<Response> 골룸을_시작한다(final String 로그인_토큰, final Long 골룸_아이디) {
final ExtractableResponse<Response> 골룸_시작_요청_응답 = given().log().all()
return given().log().all()
.contentType(MediaType.APPLICATION_JSON_VALUE)
.when()
.header(new Header(HttpHeaders.AUTHORIZATION, 로그인_토큰))
.post(API_PREFIX + "/goal-rooms/{goalRoomId}/start", 골룸_아이디)
.then()
.log().all()
.extract();
return 골룸_시작_요청_응답;
}

public static ExtractableResponse<Response> 골룸의_사용자_정보를_정렬_기준없이_조회(final Long 골룸_아이디, final String 로그인_토큰) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import static org.mockito.Mockito.when;

import co.kirikiri.common.exception.BadRequestException;
import co.kirikiri.common.exception.ImageExtensionException;
import co.kirikiri.common.exception.domain.ImageExtensionException;
import co.kirikiri.common.exception.NotFoundException;
import co.kirikiri.common.service.FilePathGenerator;
import co.kirikiri.common.service.FileService;
Expand Down

0 comments on commit fe568b5

Please sign in to comment.