Skip to content

Commit

Permalink
refactor/#392: dto 패키지 BE 컨벤션에 맞게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
LJH098 committed Jul 17, 2024
1 parent 9f72ba1 commit f97145c
Show file tree
Hide file tree
Showing 67 changed files with 79 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import com.gaebaljip.exceed.common.ApiResponseGenerator;
import com.gaebaljip.exceed.common.docs.auth.AuthExceptionDocs;
import com.gaebaljip.exceed.common.dto.LoginResponseDTO;
import com.gaebaljip.exceed.common.dto.request.LoginRequest;
import com.gaebaljip.exceed.adapter.in.auth.request.LoginRequest;
import com.gaebaljip.exceed.common.security.AuthConstants;
import com.gaebaljip.exceed.common.swagger.ApiErrorExceptionsExample;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.request;
package com.gaebaljip.exceed.adapter.in.auth.request;

import javax.validation.constraints.Email;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import com.gaebaljip.exceed.common.ApiResponse.CustomBody;
import com.gaebaljip.exceed.common.ApiResponseGenerator;
import com.gaebaljip.exceed.common.annotation.AuthenticationMemberId;
import com.gaebaljip.exceed.common.dto.request.CreateFoodRequest;
import com.gaebaljip.exceed.adapter.in.food.request.CreateFoodRequest;

import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import com.gaebaljip.exceed.application.port.in.food.GetFoodQuery;
import com.gaebaljip.exceed.common.ApiResponse;
import com.gaebaljip.exceed.common.ApiResponseGenerator;
import com.gaebaljip.exceed.common.dto.response.GetFoodResponse;
import com.gaebaljip.exceed.common.dto.response.GetFoodsAutoResponse;
import com.gaebaljip.exceed.adapter.in.food.response.GetFoodResponse;
import com.gaebaljip.exceed.adapter.in.food.response.GetFoodsAutoResponse;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import com.gaebaljip.exceed.common.ApiResponse;
import com.gaebaljip.exceed.common.ApiResponseGenerator;
import com.gaebaljip.exceed.common.annotation.AuthenticationMemberId;
import com.gaebaljip.exceed.common.dto.response.GetOwnFoodResponse;
import com.gaebaljip.exceed.adapter.in.food.response.GetOwnFoodResponse;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.request;
package com.gaebaljip.exceed.adapter.in.food.request;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.response;
package com.gaebaljip.exceed.adapter.in.food.response;

import com.gaebaljip.exceed.adapter.out.jpa.food.FoodEntity;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.response;
package com.gaebaljip.exceed.adapter.in.food.response;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.response;
package com.gaebaljip.exceed.adapter.in.food.response;

public record GetOwnFoodResponse(Long foodId, String name) {
public static GetOwnFoodResponse of(Long foodId, String name) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import com.gaebaljip.exceed.common.ApiResponseGenerator;
import com.gaebaljip.exceed.common.annotation.AuthenticationMemberId;
import com.gaebaljip.exceed.common.docs.meal.EatMealExceptionDocs;
import com.gaebaljip.exceed.common.dto.request.EatMealRequest;
import com.gaebaljip.exceed.common.dto.response.EatMealResponse;
import com.gaebaljip.exceed.adapter.in.meal.request.EatMealRequest;
import com.gaebaljip.exceed.adapter.in.meal.response.EatMealResponse;
import com.gaebaljip.exceed.common.swagger.ApiErrorExceptionsExample;

import io.swagger.v3.oas.annotations.Operation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
import com.gaebaljip.exceed.common.docs.meal.GetMealExceptionDocs;
import com.gaebaljip.exceed.common.docs.meal.GetMealFoodExceptionDocs;
import com.gaebaljip.exceed.common.dto.*;
import com.gaebaljip.exceed.common.dto.request.GetAllAnalysisRequest;
import com.gaebaljip.exceed.common.dto.response.GetMealFoodResponse;
import com.gaebaljip.exceed.common.dto.response.GetMealResponse;
import com.gaebaljip.exceed.adapter.in.nutritionist.request.GetAllAnalysisRequest;
import com.gaebaljip.exceed.adapter.in.meal.response.GetMealFoodResponse;
import com.gaebaljip.exceed.adapter.in.meal.response.GetMealResponse;
import com.gaebaljip.exceed.common.swagger.ApiErrorExceptionsExample;

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.gaebaljip.exceed.common.dto.request;
package com.gaebaljip.exceed.adapter.in.meal.request;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.response;
package com.gaebaljip.exceed.adapter.in.meal.response;

import lombok.Builder;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.gaebaljip.exceed.common.dto.response;
package com.gaebaljip.exceed.adapter.in.meal.response;

import java.util.List;

import com.gaebaljip.exceed.adapter.in.meal.response.GetMealResponse;
import com.gaebaljip.exceed.common.dto.AllAnalysisDTO;
import com.gaebaljip.exceed.common.dto.MealRecordDTO;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.response;
package com.gaebaljip.exceed.adapter.in.meal.response;

import com.gaebaljip.exceed.common.dto.CurrentMealDTO;
import com.gaebaljip.exceed.common.dto.MaintainMealDTO;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import com.gaebaljip.exceed.application.port.in.member.CheckCodeUsecase;
import com.gaebaljip.exceed.common.ApiResponse;
import com.gaebaljip.exceed.common.ApiResponseGenerator;
import com.gaebaljip.exceed.common.dto.request.CheckMemberRequest;
import com.gaebaljip.exceed.adapter.in.member.request.CheckMemberRequest;

import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.gaebaljip.exceed.common.ApiResponse;
import com.gaebaljip.exceed.common.ApiResponseGenerator;
import com.gaebaljip.exceed.common.annotation.AuthenticationMemberId;
import com.gaebaljip.exceed.common.dto.response.GetWeightResponse;
import com.gaebaljip.exceed.adapter.in.member.response.GetWeightResponse;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import com.gaebaljip.exceed.common.ApiResponseGenerator;
import com.gaebaljip.exceed.common.annotation.AuthenticationMemberId;
import com.gaebaljip.exceed.common.docs.member.OnBoardingMemberExceptionDocs;
import com.gaebaljip.exceed.common.dto.request.OnBoardingMemberRequest;
import com.gaebaljip.exceed.adapter.in.member.request.OnBoardingMemberRequest;
import com.gaebaljip.exceed.common.swagger.ApiErrorExceptionsExample;

import io.swagger.v3.oas.annotations.Operation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import com.gaebaljip.exceed.common.ApiResponse.CustomBody;
import com.gaebaljip.exceed.common.ApiResponseGenerator;
import com.gaebaljip.exceed.common.docs.member.SignUpMemberExceptionDocs;
import com.gaebaljip.exceed.common.dto.request.SignUpMemberRequest;
import com.gaebaljip.exceed.adapter.in.member.request.SignUpMemberRequest;
import com.gaebaljip.exceed.common.swagger.ApiErrorExceptionsExample;

import io.swagger.v3.oas.annotations.Operation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import com.gaebaljip.exceed.common.ApiResponseGenerator;
import com.gaebaljip.exceed.common.annotation.AuthenticationMemberId;
import com.gaebaljip.exceed.common.docs.member.UpdateMemberExceptionDocs;
import com.gaebaljip.exceed.common.dto.request.UpdateMemberRequest;
import com.gaebaljip.exceed.adapter.in.member.request.UpdateMemberRequest;
import com.gaebaljip.exceed.common.swagger.ApiErrorExceptionsExample;

import io.swagger.v3.oas.annotations.Operation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
import com.gaebaljip.exceed.common.ApiResponse;
import com.gaebaljip.exceed.common.ApiResponseGenerator;
import com.gaebaljip.exceed.common.annotation.AuthenticationMemberId;
import com.gaebaljip.exceed.common.dto.request.UpdateWeightRequest;
import com.gaebaljip.exceed.common.dto.response.UpdateWeightResponse;
import com.gaebaljip.exceed.adapter.in.member.request.UpdateWeightRequest;
import com.gaebaljip.exceed.adapter.in.member.response.UpdateWeightResponse;
import com.gaebaljip.exceed.common.event.Events;
import com.gaebaljip.exceed.common.event.UpdateWeightEvent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.request;
package com.gaebaljip.exceed.adapter.in.member.request;

import javax.validation.constraints.NotNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.request;
package com.gaebaljip.exceed.adapter.in.member.request;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.request;
package com.gaebaljip.exceed.adapter.in.member.request;

import javax.validation.constraints.Email;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.request;
package com.gaebaljip.exceed.adapter.in.member.request;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.request;
package com.gaebaljip.exceed.adapter.in.member.request;

import lombok.Builder;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.response;
package com.gaebaljip.exceed.adapter.in.member.response;

public record GetWeightResponse(Double weight, Double targetWeight) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.response;
package com.gaebaljip.exceed.adapter.in.member.response;

import lombok.Builder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import com.gaebaljip.exceed.common.ApiResponseGenerator;
import com.gaebaljip.exceed.common.annotation.AuthenticationMemberId;
import com.gaebaljip.exceed.common.docs.nutritionist.GetAnalysisExceptionDocs;
import com.gaebaljip.exceed.common.dto.request.GetCalorieAnalysisRequest;
import com.gaebaljip.exceed.common.dto.response.GetCalorieAnalysisResponse;
import com.gaebaljip.exceed.adapter.in.nutritionist.request.GetCalorieAnalysisRequest;
import com.gaebaljip.exceed.adapter.in.nutritionist.response.GetCalorieAnalysisResponse;
import com.gaebaljip.exceed.common.swagger.ApiErrorExceptionsExample;

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.gaebaljip.exceed.common.dto.request;
package com.gaebaljip.exceed.adapter.in.nutritionist.request;

import java.time.LocalDateTime;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.request;
package com.gaebaljip.exceed.adapter.in.nutritionist.request;

import java.time.LocalDateTime;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaebaljip.exceed.common.dto.response;
package com.gaebaljip.exceed.adapter.in.nutritionist.response;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.springframework.stereotype.Component;

import com.gaebaljip.exceed.common.dto.LoginResponseDTO;
import com.gaebaljip.exceed.common.dto.request.LoginRequest;
import com.gaebaljip.exceed.adapter.in.auth.request.LoginRequest;

@Component
public interface AuthUsecase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.springframework.stereotype.Component;

import com.gaebaljip.exceed.common.dto.request.CreateFoodRequest;
import com.gaebaljip.exceed.adapter.in.food.request.CreateFoodRequest;

@Component
public interface CreateFoodUseCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import org.springframework.stereotype.Component;

import com.gaebaljip.exceed.common.dto.response.GetFoodResponse;
import com.gaebaljip.exceed.common.dto.response.GetFoodsAutoResponse;
import com.gaebaljip.exceed.adapter.in.food.response.GetFoodResponse;
import com.gaebaljip.exceed.adapter.in.food.response.GetFoodsAutoResponse;

@Component
public interface GetFoodQuery {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.util.List;

import com.gaebaljip.exceed.common.dto.response.GetOwnFoodResponse;
import com.gaebaljip.exceed.adapter.in.food.response.GetOwnFoodResponse;

public interface GetOwnFoodUseCase {
List<GetOwnFoodResponse> execute(Long memberId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import com.gaebaljip.exceed.application.domain.meal.MealType;
import com.gaebaljip.exceed.common.dto.EatMealFoodDTO;
import com.gaebaljip.exceed.common.dto.request.EatMealRequest;
import com.gaebaljip.exceed.adapter.in.meal.request.EatMealRequest;

import lombok.Builder;

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

import org.springframework.stereotype.Component;

import com.gaebaljip.exceed.common.dto.request.CheckMemberRequest;
import com.gaebaljip.exceed.adapter.in.member.request.CheckMemberRequest;

@Component
public interface CheckCodeUsecase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.springframework.stereotype.Component;

import com.gaebaljip.exceed.common.dto.request.SignUpMemberRequest;
import com.gaebaljip.exceed.adapter.in.member.request.SignUpMemberRequest;

@Component
public interface CreateMemberUsecase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.gaebaljip.exceed.application.port.in.member;

import com.gaebaljip.exceed.common.dto.response.GetWeightResponse;
import com.gaebaljip.exceed.adapter.in.member.response.GetWeightResponse;

public interface GetWeightUseCase {
GetWeightResponse execute(Long memberId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import com.gaebaljip.exceed.application.domain.member.Activity;
import com.gaebaljip.exceed.application.domain.member.Gender;
import com.gaebaljip.exceed.common.dto.request.OnBoardingMemberRequest;
import com.gaebaljip.exceed.adapter.in.member.request.OnBoardingMemberRequest;

import lombok.Builder;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.gaebaljip.exceed.application.port.in.member;

import com.gaebaljip.exceed.common.dto.request.UpdateMemberRequest;
import com.gaebaljip.exceed.adapter.in.member.request.UpdateMemberRequest;

import lombok.Builder;

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

import org.springframework.stereotype.Component;

import com.gaebaljip.exceed.common.dto.response.UpdateWeightResponse;
import com.gaebaljip.exceed.adapter.in.member.response.UpdateWeightResponse;

@Component
public interface UpdateWeightUsecase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.springframework.stereotype.Component;

import com.gaebaljip.exceed.common.dto.AllAnalysisDTO;
import com.gaebaljip.exceed.common.dto.request.GetAllAnalysisRequest;
import com.gaebaljip.exceed.adapter.in.nutritionist.request.GetAllAnalysisRequest;

@Component
public interface GetAllAnalysisUsecase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import org.springframework.stereotype.Component;

import com.gaebaljip.exceed.common.dto.request.GetCalorieAnalysisRequest;
import com.gaebaljip.exceed.common.dto.response.GetCalorieAnalysisResponse;
import com.gaebaljip.exceed.adapter.in.nutritionist.request.GetCalorieAnalysisRequest;
import com.gaebaljip.exceed.adapter.in.nutritionist.response.GetCalorieAnalysisResponse;

@Component
public interface GetCalorieAnalysisUsecase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import com.gaebaljip.exceed.application.port.in.auth.AuthUsecase;
import com.gaebaljip.exceed.application.port.out.member.MemberPort;
import com.gaebaljip.exceed.common.dto.LoginResponseDTO;
import com.gaebaljip.exceed.common.dto.request.LoginRequest;
import com.gaebaljip.exceed.adapter.in.auth.request.LoginRequest;
import com.gaebaljip.exceed.common.exception.auth.PasswordMismatchException;
import com.gaebaljip.exceed.common.security.domain.JwtManager;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.gaebaljip.exceed.application.port.in.food.CreateFoodUseCase;
import com.gaebaljip.exceed.application.port.out.food.FoodPort;
import com.gaebaljip.exceed.application.port.out.member.MemberPort;
import com.gaebaljip.exceed.common.dto.request.CreateFoodRequest;
import com.gaebaljip.exceed.adapter.in.food.request.CreateFoodRequest;

import lombok.RequiredArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import com.gaebaljip.exceed.application.port.in.food.GetFoodQuery;
import com.gaebaljip.exceed.application.port.out.food.FoodPort;
import com.gaebaljip.exceed.common.EatCeedStaticMessage;
import com.gaebaljip.exceed.common.dto.response.GetFoodResponse;
import com.gaebaljip.exceed.common.dto.response.GetFoodsAutoResponse;
import com.gaebaljip.exceed.adapter.in.food.response.GetFoodResponse;
import com.gaebaljip.exceed.adapter.in.food.response.GetFoodsAutoResponse;

import lombok.RequiredArgsConstructor;

Expand Down
Loading

0 comments on commit f97145c

Please sign in to comment.