From ebd7c81a2a4008a72a08e1c0b76f19abf7c48fa9 Mon Sep 17 00:00:00 2001 From: Min-Ho CHO <66549638+chominho96@users.noreply.github.com> Date: Sun, 7 Apr 2024 00:01:46 +0900 Subject: [PATCH 1/2] setting: change project name --- settings.gradle | 2 +- .../UniletterApplication.java} | 6 +++--- .../common/BaseEntity.java | 2 +- .../common/error/BaseException.java | 2 +- .../common/error/ErrorResponse.java | 2 +- .../common/error/ForbiddenException.java | 2 +- .../common/error/GlobalExceptionHandler.java | 2 +- .../common/error/NotFoundException.java | 2 +- .../config/ArgumentResolverConfig.java | 4 ++-- .../config/FilterConfiguration.java | 4 ++-- .../config/SwaggerConfig.java | 2 +- .../{team5 => uniletter}/event/Event.java | 4 ++-- .../{team5 => uniletter}/event/EventType.java | 2 +- .../event/controller/EventController.java | 10 +++++----- .../event/controller/EventControllerDocs.java | 14 +++++++------- .../event/dto/EventAddRequest.java | 4 ++-- .../event/dto/EventListResponse.java | 2 +- .../event/dto/EventResponse.java | 4 ++-- .../event/dto/TypeListResponse.java | 2 +- .../event/dto/TypeResponse.java | 4 ++-- .../event/repository/EventRepository.java | 6 +++--- .../event/service/EventService.java | 16 ++++++++-------- .../{team5 => uniletter}/log/LogFilter.java | 2 +- .../login/AuthorizationExtractor.java | 2 +- .../login/MemberArgumentResolver.java | 8 ++++---- .../login/controller/LoginController.java | 12 ++++++------ .../login/controller/LoginControllerDocs.java | 10 +++++----- .../login/dto/JwtTokenResponse.java | 2 +- .../login/dto/LoginRequest.java | 2 +- .../login/dto/LoginResponse.java | 4 ++-- .../login/service/AppleTokenValidator.java | 2 +- .../login/service/JwtProvider.java | 2 +- .../login/service/LoginService.java | 8 ++++---- .../{team5 => uniletter}/member/Member.java | 4 ++-- .../member/repository/MemberRepository.java | 6 +++--- .../{team5 => uniletter}/message/Message.java | 6 +++--- .../message/controller/MessageController.java | 14 +++++++------- .../controller/MessageControllerDocs.java | 14 +++++++------- .../message/dto/MessageEventResponse.java | 6 +++--- .../message/dto/MessageListResponse.java | 2 +- .../message/dto/MessageRequest.java | 4 ++-- .../message/dto/MessageResponse.java | 8 ++++---- .../message/dto/UnreadMessageResponse.java | 2 +- .../message/repository/MessageRepository.java | 6 +++--- .../message/service/MessageService.java | 18 +++++++++--------- .../UniletterApplicationTests.java} | 4 ++-- 46 files changed, 123 insertions(+), 123 deletions(-) rename src/main/java/unithon/{team5/Team5Application.java => uniletter/UniletterApplication.java} (69%) rename src/main/java/unithon/{team5 => uniletter}/common/BaseEntity.java (96%) rename src/main/java/unithon/{team5 => uniletter}/common/error/BaseException.java (86%) rename src/main/java/unithon/{team5 => uniletter}/common/error/ErrorResponse.java (65%) rename src/main/java/unithon/{team5 => uniletter}/common/error/ForbiddenException.java (78%) rename src/main/java/unithon/{team5 => uniletter}/common/error/GlobalExceptionHandler.java (99%) rename src/main/java/unithon/{team5 => uniletter}/common/error/NotFoundException.java (77%) rename src/main/java/unithon/{team5 => uniletter}/config/ArgumentResolverConfig.java (87%) rename src/main/java/unithon/{team5 => uniletter}/config/FilterConfiguration.java (90%) rename src/main/java/unithon/{team5 => uniletter}/config/SwaggerConfig.java (95%) rename src/main/java/unithon/{team5 => uniletter}/event/Event.java (94%) rename src/main/java/unithon/{team5 => uniletter}/event/EventType.java (93%) rename src/main/java/unithon/{team5 => uniletter}/event/controller/EventController.java (87%) rename src/main/java/unithon/{team5 => uniletter}/event/controller/EventControllerDocs.java (91%) rename src/main/java/unithon/{team5 => uniletter}/event/dto/EventAddRequest.java (84%) rename src/main/java/unithon/{team5 => uniletter}/event/dto/EventListResponse.java (70%) rename src/main/java/unithon/{team5 => uniletter}/event/dto/EventResponse.java (87%) rename src/main/java/unithon/{team5 => uniletter}/event/dto/TypeListResponse.java (69%) rename src/main/java/unithon/{team5 => uniletter}/event/dto/TypeResponse.java (73%) rename src/main/java/unithon/{team5 => uniletter}/event/repository/EventRepository.java (84%) rename src/main/java/unithon/{team5 => uniletter}/event/service/EventService.java (82%) rename src/main/java/unithon/{team5 => uniletter}/log/LogFilter.java (98%) rename src/main/java/unithon/{team5 => uniletter}/login/AuthorizationExtractor.java (96%) rename src/main/java/unithon/{team5 => uniletter}/login/MemberArgumentResolver.java (88%) rename src/main/java/unithon/{team5 => uniletter}/login/controller/LoginController.java (73%) rename src/main/java/unithon/{team5 => uniletter}/login/controller/LoginControllerDocs.java (90%) rename src/main/java/unithon/{team5 => uniletter}/login/dto/JwtTokenResponse.java (57%) rename src/main/java/unithon/{team5 => uniletter}/login/dto/LoginRequest.java (90%) rename src/main/java/unithon/{team5 => uniletter}/login/dto/LoginResponse.java (86%) rename src/main/java/unithon/{team5 => uniletter}/login/service/AppleTokenValidator.java (97%) rename src/main/java/unithon/{team5 => uniletter}/login/service/JwtProvider.java (98%) rename src/main/java/unithon/{team5 => uniletter}/login/service/LoginService.java (90%) rename src/main/java/unithon/{team5 => uniletter}/member/Member.java (93%) rename src/main/java/unithon/{team5 => uniletter}/member/repository/MemberRepository.java (80%) rename src/main/java/unithon/{team5 => uniletter}/message/Message.java (94%) rename src/main/java/unithon/{team5 => uniletter}/message/controller/MessageController.java (79%) rename src/main/java/unithon/{team5 => uniletter}/message/controller/MessageControllerDocs.java (95%) rename src/main/java/unithon/{team5 => uniletter}/message/dto/MessageEventResponse.java (83%) rename src/main/java/unithon/{team5 => uniletter}/message/dto/MessageListResponse.java (70%) rename src/main/java/unithon/{team5 => uniletter}/message/dto/MessageRequest.java (89%) rename src/main/java/unithon/{team5 => uniletter}/message/dto/MessageResponse.java (87%) rename src/main/java/unithon/{team5 => uniletter}/message/dto/UnreadMessageResponse.java (71%) rename src/main/java/unithon/{team5 => uniletter}/message/repository/MessageRepository.java (80%) rename src/main/java/unithon/{team5 => uniletter}/message/service/MessageService.java (84%) rename src/test/java/unithon/{team5/Team5ApplicationTests.java => uniletter/UniletterApplicationTests.java} (71%) diff --git a/settings.gradle b/settings.gradle index 5656602..40646e6 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -rootProject.name = 'team5' +rootProject.name = 'uniletter-be' diff --git a/src/main/java/unithon/team5/Team5Application.java b/src/main/java/unithon/uniletter/UniletterApplication.java similarity index 69% rename from src/main/java/unithon/team5/Team5Application.java rename to src/main/java/unithon/uniletter/UniletterApplication.java index 7dd2f53..c1f14a3 100644 --- a/src/main/java/unithon/team5/Team5Application.java +++ b/src/main/java/unithon/uniletter/UniletterApplication.java @@ -1,4 +1,4 @@ -package unithon.team5; +package unithon.uniletter; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -6,9 +6,9 @@ @SpringBootApplication @EnableJpaAuditing -public class Team5Application { +public class UniletterApplication { public static void main(String[] args) { - SpringApplication.run(Team5Application.class, args); + SpringApplication.run(UniletterApplication.class, args); } } diff --git a/src/main/java/unithon/team5/common/BaseEntity.java b/src/main/java/unithon/uniletter/common/BaseEntity.java similarity index 96% rename from src/main/java/unithon/team5/common/BaseEntity.java rename to src/main/java/unithon/uniletter/common/BaseEntity.java index 39693d8..a6b5c97 100644 --- a/src/main/java/unithon/team5/common/BaseEntity.java +++ b/src/main/java/unithon/uniletter/common/BaseEntity.java @@ -1,4 +1,4 @@ -package unithon.team5.common; +package unithon.uniletter.common; import jakarta.persistence.*; import lombok.Getter; diff --git a/src/main/java/unithon/team5/common/error/BaseException.java b/src/main/java/unithon/uniletter/common/error/BaseException.java similarity index 86% rename from src/main/java/unithon/team5/common/error/BaseException.java rename to src/main/java/unithon/uniletter/common/error/BaseException.java index 7762dfa..7f4ea3e 100644 --- a/src/main/java/unithon/team5/common/error/BaseException.java +++ b/src/main/java/unithon/uniletter/common/error/BaseException.java @@ -1,4 +1,4 @@ -package unithon.team5.common.error; +package unithon.uniletter.common.error; public class BaseException extends RuntimeException { private final String message; diff --git a/src/main/java/unithon/team5/common/error/ErrorResponse.java b/src/main/java/unithon/uniletter/common/error/ErrorResponse.java similarity index 65% rename from src/main/java/unithon/team5/common/error/ErrorResponse.java rename to src/main/java/unithon/uniletter/common/error/ErrorResponse.java index 9eb94cc..41fa950 100644 --- a/src/main/java/unithon/team5/common/error/ErrorResponse.java +++ b/src/main/java/unithon/uniletter/common/error/ErrorResponse.java @@ -1,4 +1,4 @@ -package unithon.team5.common.error; +package unithon.uniletter.common.error; public record ErrorResponse( int code, diff --git a/src/main/java/unithon/team5/common/error/ForbiddenException.java b/src/main/java/unithon/uniletter/common/error/ForbiddenException.java similarity index 78% rename from src/main/java/unithon/team5/common/error/ForbiddenException.java rename to src/main/java/unithon/uniletter/common/error/ForbiddenException.java index 2056704..b575a36 100644 --- a/src/main/java/unithon/team5/common/error/ForbiddenException.java +++ b/src/main/java/unithon/uniletter/common/error/ForbiddenException.java @@ -1,4 +1,4 @@ -package unithon.team5.common.error; +package unithon.uniletter.common.error; public class ForbiddenException extends BaseException { public ForbiddenException(final String message) { diff --git a/src/main/java/unithon/team5/common/error/GlobalExceptionHandler.java b/src/main/java/unithon/uniletter/common/error/GlobalExceptionHandler.java similarity index 99% rename from src/main/java/unithon/team5/common/error/GlobalExceptionHandler.java rename to src/main/java/unithon/uniletter/common/error/GlobalExceptionHandler.java index a56d21b..ea15c7b 100644 --- a/src/main/java/unithon/team5/common/error/GlobalExceptionHandler.java +++ b/src/main/java/unithon/uniletter/common/error/GlobalExceptionHandler.java @@ -1,4 +1,4 @@ -package unithon.team5.common.error; +package unithon.uniletter.common.error; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; diff --git a/src/main/java/unithon/team5/common/error/NotFoundException.java b/src/main/java/unithon/uniletter/common/error/NotFoundException.java similarity index 77% rename from src/main/java/unithon/team5/common/error/NotFoundException.java rename to src/main/java/unithon/uniletter/common/error/NotFoundException.java index da466a9..01c9313 100644 --- a/src/main/java/unithon/team5/common/error/NotFoundException.java +++ b/src/main/java/unithon/uniletter/common/error/NotFoundException.java @@ -1,4 +1,4 @@ -package unithon.team5.common.error; +package unithon.uniletter.common.error; public class NotFoundException extends BaseException { public NotFoundException(final String message) { diff --git a/src/main/java/unithon/team5/config/ArgumentResolverConfig.java b/src/main/java/unithon/uniletter/config/ArgumentResolverConfig.java similarity index 87% rename from src/main/java/unithon/team5/config/ArgumentResolverConfig.java rename to src/main/java/unithon/uniletter/config/ArgumentResolverConfig.java index a773475..388bc4a 100644 --- a/src/main/java/unithon/team5/config/ArgumentResolverConfig.java +++ b/src/main/java/unithon/uniletter/config/ArgumentResolverConfig.java @@ -1,11 +1,11 @@ -package unithon.team5.config; +package unithon.uniletter.config; import java.util.List; import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Configuration; import org.springframework.web.method.support.HandlerMethodArgumentResolver; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; -import unithon.team5.login.MemberArgumentResolver; +import unithon.uniletter.login.MemberArgumentResolver; @Configuration @RequiredArgsConstructor diff --git a/src/main/java/unithon/team5/config/FilterConfiguration.java b/src/main/java/unithon/uniletter/config/FilterConfiguration.java similarity index 90% rename from src/main/java/unithon/team5/config/FilterConfiguration.java rename to src/main/java/unithon/uniletter/config/FilterConfiguration.java index d64abb7..d5c0610 100644 --- a/src/main/java/unithon/team5/config/FilterConfiguration.java +++ b/src/main/java/unithon/uniletter/config/FilterConfiguration.java @@ -1,10 +1,10 @@ -package unithon.team5.config; +package unithon.uniletter.config; import lombok.RequiredArgsConstructor; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import unithon.team5.log.LogFilter; +import unithon.uniletter.log.LogFilter; @Configuration @RequiredArgsConstructor diff --git a/src/main/java/unithon/team5/config/SwaggerConfig.java b/src/main/java/unithon/uniletter/config/SwaggerConfig.java similarity index 95% rename from src/main/java/unithon/team5/config/SwaggerConfig.java rename to src/main/java/unithon/uniletter/config/SwaggerConfig.java index 2230953..54cd453 100644 --- a/src/main/java/unithon/team5/config/SwaggerConfig.java +++ b/src/main/java/unithon/uniletter/config/SwaggerConfig.java @@ -1,4 +1,4 @@ -package unithon.team5.config; +package unithon.uniletter.config; import io.swagger.v3.oas.models.Components; import io.swagger.v3.oas.models.OpenAPI; diff --git a/src/main/java/unithon/team5/event/Event.java b/src/main/java/unithon/uniletter/event/Event.java similarity index 94% rename from src/main/java/unithon/team5/event/Event.java rename to src/main/java/unithon/uniletter/event/Event.java index 41ddf8b..478e0e4 100644 --- a/src/main/java/unithon/team5/event/Event.java +++ b/src/main/java/unithon/uniletter/event/Event.java @@ -1,4 +1,4 @@ -package unithon.team5.event; +package unithon.uniletter.event; import jakarta.persistence.Column; import jakarta.persistence.Entity; @@ -6,7 +6,7 @@ import jakarta.persistence.Enumerated; import lombok.Builder; import lombok.Getter; -import unithon.team5.common.BaseEntity; +import unithon.uniletter.common.BaseEntity; import java.time.LocalDate; import java.util.UUID; diff --git a/src/main/java/unithon/team5/event/EventType.java b/src/main/java/unithon/uniletter/event/EventType.java similarity index 93% rename from src/main/java/unithon/team5/event/EventType.java rename to src/main/java/unithon/uniletter/event/EventType.java index 31d223f..89e0871 100644 --- a/src/main/java/unithon/team5/event/EventType.java +++ b/src/main/java/unithon/uniletter/event/EventType.java @@ -1,4 +1,4 @@ -package unithon.team5.event; +package unithon.uniletter.event; import lombok.Getter; diff --git a/src/main/java/unithon/team5/event/controller/EventController.java b/src/main/java/unithon/uniletter/event/controller/EventController.java similarity index 87% rename from src/main/java/unithon/team5/event/controller/EventController.java rename to src/main/java/unithon/uniletter/event/controller/EventController.java index 3382d80..c01d241 100644 --- a/src/main/java/unithon/team5/event/controller/EventController.java +++ b/src/main/java/unithon/uniletter/event/controller/EventController.java @@ -1,13 +1,13 @@ -package unithon.team5.event.controller; +package unithon.uniletter.event.controller; import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; -import unithon.team5.event.dto.*; -import unithon.team5.event.service.EventService; -import unithon.team5.member.Member; -import unithon.team5.message.dto.MessageListResponse; +import unithon.uniletter.event.dto.*; +import unithon.uniletter.event.service.EventService; +import unithon.uniletter.member.Member; +import unithon.uniletter.message.dto.MessageListResponse; import java.net.URI; import java.util.List; diff --git a/src/main/java/unithon/team5/event/controller/EventControllerDocs.java b/src/main/java/unithon/uniletter/event/controller/EventControllerDocs.java similarity index 91% rename from src/main/java/unithon/team5/event/controller/EventControllerDocs.java rename to src/main/java/unithon/uniletter/event/controller/EventControllerDocs.java index 8e2f3d1..bec03d7 100644 --- a/src/main/java/unithon/team5/event/controller/EventControllerDocs.java +++ b/src/main/java/unithon/uniletter/event/controller/EventControllerDocs.java @@ -1,4 +1,4 @@ -package unithon.team5.event.controller; +package unithon.uniletter.event.controller; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; @@ -11,12 +11,12 @@ import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; -import unithon.team5.common.error.ErrorResponse; -import unithon.team5.event.dto.EventAddRequest; -import unithon.team5.event.dto.EventListResponse; -import unithon.team5.event.dto.TypeListResponse; -import unithon.team5.member.Member; -import unithon.team5.message.dto.MessageListResponse; +import unithon.uniletter.common.error.ErrorResponse; +import unithon.uniletter.event.dto.EventAddRequest; +import unithon.uniletter.event.dto.EventListResponse; +import unithon.uniletter.event.dto.TypeListResponse; +import unithon.uniletter.member.Member; +import unithon.uniletter.message.dto.MessageListResponse; import java.util.UUID; diff --git a/src/main/java/unithon/team5/event/dto/EventAddRequest.java b/src/main/java/unithon/uniletter/event/dto/EventAddRequest.java similarity index 84% rename from src/main/java/unithon/team5/event/dto/EventAddRequest.java rename to src/main/java/unithon/uniletter/event/dto/EventAddRequest.java index b8e67ea..bcad788 100644 --- a/src/main/java/unithon/team5/event/dto/EventAddRequest.java +++ b/src/main/java/unithon/uniletter/event/dto/EventAddRequest.java @@ -1,10 +1,10 @@ -package unithon.team5.event.dto; +package unithon.uniletter.event.dto; import jakarta.validation.constraints.Future; import jakarta.validation.constraints.NotEmpty; import jakarta.validation.constraints.NotNull; import org.hibernate.validator.constraints.Length; -import unithon.team5.event.EventType; +import unithon.uniletter.event.EventType; import java.time.LocalDate; diff --git a/src/main/java/unithon/team5/event/dto/EventListResponse.java b/src/main/java/unithon/uniletter/event/dto/EventListResponse.java similarity index 70% rename from src/main/java/unithon/team5/event/dto/EventListResponse.java rename to src/main/java/unithon/uniletter/event/dto/EventListResponse.java index 4e91f37..f468001 100644 --- a/src/main/java/unithon/team5/event/dto/EventListResponse.java +++ b/src/main/java/unithon/uniletter/event/dto/EventListResponse.java @@ -1,4 +1,4 @@ -package unithon.team5.event.dto; +package unithon.uniletter.event.dto; import java.util.List; diff --git a/src/main/java/unithon/team5/event/dto/EventResponse.java b/src/main/java/unithon/uniletter/event/dto/EventResponse.java similarity index 87% rename from src/main/java/unithon/team5/event/dto/EventResponse.java rename to src/main/java/unithon/uniletter/event/dto/EventResponse.java index 78b4207..2dccf1f 100644 --- a/src/main/java/unithon/team5/event/dto/EventResponse.java +++ b/src/main/java/unithon/uniletter/event/dto/EventResponse.java @@ -1,6 +1,6 @@ -package unithon.team5.event.dto; +package unithon.uniletter.event.dto; -import unithon.team5.event.Event; +import unithon.uniletter.event.Event; import java.time.LocalDate; import java.util.List; diff --git a/src/main/java/unithon/team5/event/dto/TypeListResponse.java b/src/main/java/unithon/uniletter/event/dto/TypeListResponse.java similarity index 69% rename from src/main/java/unithon/team5/event/dto/TypeListResponse.java rename to src/main/java/unithon/uniletter/event/dto/TypeListResponse.java index d9a68a7..a8512f3 100644 --- a/src/main/java/unithon/team5/event/dto/TypeListResponse.java +++ b/src/main/java/unithon/uniletter/event/dto/TypeListResponse.java @@ -1,4 +1,4 @@ -package unithon.team5.event.dto; +package unithon.uniletter.event.dto; import java.util.List; diff --git a/src/main/java/unithon/team5/event/dto/TypeResponse.java b/src/main/java/unithon/uniletter/event/dto/TypeResponse.java similarity index 73% rename from src/main/java/unithon/team5/event/dto/TypeResponse.java rename to src/main/java/unithon/uniletter/event/dto/TypeResponse.java index 18560f2..ee6a72e 100644 --- a/src/main/java/unithon/team5/event/dto/TypeResponse.java +++ b/src/main/java/unithon/uniletter/event/dto/TypeResponse.java @@ -1,6 +1,6 @@ -package unithon.team5.event.dto; +package unithon.uniletter.event.dto; -import unithon.team5.event.EventType; +import unithon.uniletter.event.EventType; public record TypeResponse(String englishName, String koreanName) { diff --git a/src/main/java/unithon/team5/event/repository/EventRepository.java b/src/main/java/unithon/uniletter/event/repository/EventRepository.java similarity index 84% rename from src/main/java/unithon/team5/event/repository/EventRepository.java rename to src/main/java/unithon/uniletter/event/repository/EventRepository.java index b282c37..02b1087 100644 --- a/src/main/java/unithon/team5/event/repository/EventRepository.java +++ b/src/main/java/unithon/uniletter/event/repository/EventRepository.java @@ -1,9 +1,9 @@ -package unithon.team5.event.repository; +package unithon.uniletter.event.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; -import unithon.team5.common.error.NotFoundException; -import unithon.team5.event.Event; +import unithon.uniletter.common.error.NotFoundException; +import unithon.uniletter.event.Event; import java.time.LocalDate; import java.util.List; diff --git a/src/main/java/unithon/team5/event/service/EventService.java b/src/main/java/unithon/uniletter/event/service/EventService.java similarity index 82% rename from src/main/java/unithon/team5/event/service/EventService.java rename to src/main/java/unithon/uniletter/event/service/EventService.java index d90625a..ef9e1e3 100644 --- a/src/main/java/unithon/team5/event/service/EventService.java +++ b/src/main/java/unithon/uniletter/event/service/EventService.java @@ -1,15 +1,15 @@ -package unithon.team5.event.service; +package unithon.uniletter.event.service; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import unithon.team5.common.error.ForbiddenException; -import unithon.team5.event.Event; -import unithon.team5.event.EventType; -import unithon.team5.event.repository.EventRepository; -import unithon.team5.member.Member; -import unithon.team5.message.dto.MessageResponse; -import unithon.team5.message.repository.MessageRepository; +import unithon.uniletter.common.error.ForbiddenException; +import unithon.uniletter.event.Event; +import unithon.uniletter.event.EventType; +import unithon.uniletter.event.repository.EventRepository; +import unithon.uniletter.member.Member; +import unithon.uniletter.message.dto.MessageResponse; +import unithon.uniletter.message.repository.MessageRepository; import java.time.LocalDate; import java.util.Arrays; diff --git a/src/main/java/unithon/team5/log/LogFilter.java b/src/main/java/unithon/uniletter/log/LogFilter.java similarity index 98% rename from src/main/java/unithon/team5/log/LogFilter.java rename to src/main/java/unithon/uniletter/log/LogFilter.java index e635c07..1b1133f 100644 --- a/src/main/java/unithon/team5/log/LogFilter.java +++ b/src/main/java/unithon/uniletter/log/LogFilter.java @@ -1,4 +1,4 @@ -package unithon.team5.log; +package unithon.uniletter.log; import jakarta.servlet.*; import jakarta.servlet.http.HttpServletRequest; diff --git a/src/main/java/unithon/team5/login/AuthorizationExtractor.java b/src/main/java/unithon/uniletter/login/AuthorizationExtractor.java similarity index 96% rename from src/main/java/unithon/team5/login/AuthorizationExtractor.java rename to src/main/java/unithon/uniletter/login/AuthorizationExtractor.java index 8d492e7..8c94b51 100644 --- a/src/main/java/unithon/team5/login/AuthorizationExtractor.java +++ b/src/main/java/unithon/uniletter/login/AuthorizationExtractor.java @@ -1,4 +1,4 @@ -package unithon.team5.login; +package unithon.uniletter.login; import static org.springframework.http.HttpHeaders.AUTHORIZATION; diff --git a/src/main/java/unithon/team5/login/MemberArgumentResolver.java b/src/main/java/unithon/uniletter/login/MemberArgumentResolver.java similarity index 88% rename from src/main/java/unithon/team5/login/MemberArgumentResolver.java rename to src/main/java/unithon/uniletter/login/MemberArgumentResolver.java index fb20922..b7433db 100644 --- a/src/main/java/unithon/team5/login/MemberArgumentResolver.java +++ b/src/main/java/unithon/uniletter/login/MemberArgumentResolver.java @@ -1,4 +1,4 @@ -package unithon.team5.login; +package unithon.uniletter.login; import jakarta.servlet.http.HttpServletRequest; import java.util.UUID; @@ -9,9 +9,9 @@ import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.method.support.HandlerMethodArgumentResolver; import org.springframework.web.method.support.ModelAndViewContainer; -import unithon.team5.login.service.JwtProvider; -import unithon.team5.member.Member; -import unithon.team5.member.repository.MemberRepository; +import unithon.uniletter.login.service.JwtProvider; +import unithon.uniletter.member.Member; +import unithon.uniletter.member.repository.MemberRepository; @Component @RequiredArgsConstructor diff --git a/src/main/java/unithon/team5/login/controller/LoginController.java b/src/main/java/unithon/uniletter/login/controller/LoginController.java similarity index 73% rename from src/main/java/unithon/team5/login/controller/LoginController.java rename to src/main/java/unithon/uniletter/login/controller/LoginController.java index c918f6f..368264e 100644 --- a/src/main/java/unithon/team5/login/controller/LoginController.java +++ b/src/main/java/unithon/uniletter/login/controller/LoginController.java @@ -1,14 +1,14 @@ -package unithon.team5.login.controller; +package unithon.uniletter.login.controller; import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; -import unithon.team5.login.dto.JwtTokenResponse; -import unithon.team5.login.dto.LoginRequest; -import unithon.team5.login.dto.LoginResponse; -import unithon.team5.login.service.LoginService; -import unithon.team5.member.Member; +import unithon.uniletter.login.dto.JwtTokenResponse; +import unithon.uniletter.login.dto.LoginRequest; +import unithon.uniletter.login.dto.LoginResponse; +import unithon.uniletter.login.service.LoginService; +import unithon.uniletter.member.Member; @RestController @RequiredArgsConstructor diff --git a/src/main/java/unithon/team5/login/controller/LoginControllerDocs.java b/src/main/java/unithon/uniletter/login/controller/LoginControllerDocs.java similarity index 90% rename from src/main/java/unithon/team5/login/controller/LoginControllerDocs.java rename to src/main/java/unithon/uniletter/login/controller/LoginControllerDocs.java index 4e614f2..1b7f011 100644 --- a/src/main/java/unithon/team5/login/controller/LoginControllerDocs.java +++ b/src/main/java/unithon/uniletter/login/controller/LoginControllerDocs.java @@ -1,4 +1,4 @@ -package unithon.team5.login.controller; +package unithon.uniletter.login.controller; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; @@ -11,10 +11,10 @@ import org.springframework.http.ResponseEntity; import org.springframework.web.ErrorResponse; import org.springframework.web.bind.annotation.RequestBody; -import unithon.team5.login.dto.JwtTokenResponse; -import unithon.team5.login.dto.LoginRequest; -import unithon.team5.login.dto.LoginResponse; -import unithon.team5.member.Member; +import unithon.uniletter.login.dto.JwtTokenResponse; +import unithon.uniletter.login.dto.LoginRequest; +import unithon.uniletter.login.dto.LoginResponse; +import unithon.uniletter.member.Member; public interface LoginControllerDocs { diff --git a/src/main/java/unithon/team5/login/dto/JwtTokenResponse.java b/src/main/java/unithon/uniletter/login/dto/JwtTokenResponse.java similarity index 57% rename from src/main/java/unithon/team5/login/dto/JwtTokenResponse.java rename to src/main/java/unithon/uniletter/login/dto/JwtTokenResponse.java index aca4ba6..57d5b97 100644 --- a/src/main/java/unithon/team5/login/dto/JwtTokenResponse.java +++ b/src/main/java/unithon/uniletter/login/dto/JwtTokenResponse.java @@ -1,4 +1,4 @@ -package unithon.team5.login.dto; +package unithon.uniletter.login.dto; public record JwtTokenResponse(String token) { diff --git a/src/main/java/unithon/team5/login/dto/LoginRequest.java b/src/main/java/unithon/uniletter/login/dto/LoginRequest.java similarity index 90% rename from src/main/java/unithon/team5/login/dto/LoginRequest.java rename to src/main/java/unithon/uniletter/login/dto/LoginRequest.java index 00bc4b8..7941064 100644 --- a/src/main/java/unithon/team5/login/dto/LoginRequest.java +++ b/src/main/java/unithon/uniletter/login/dto/LoginRequest.java @@ -1,4 +1,4 @@ -package unithon.team5.login.dto; +package unithon.uniletter.login.dto; import jakarta.validation.constraints.Email; import jakarta.validation.constraints.NotEmpty; diff --git a/src/main/java/unithon/team5/login/dto/LoginResponse.java b/src/main/java/unithon/uniletter/login/dto/LoginResponse.java similarity index 86% rename from src/main/java/unithon/team5/login/dto/LoginResponse.java rename to src/main/java/unithon/uniletter/login/dto/LoginResponse.java index 0c968fd..3112239 100644 --- a/src/main/java/unithon/team5/login/dto/LoginResponse.java +++ b/src/main/java/unithon/uniletter/login/dto/LoginResponse.java @@ -1,9 +1,9 @@ -package unithon.team5.login.dto; +package unithon.uniletter.login.dto; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; -import unithon.team5.member.Member; +import unithon.uniletter.member.Member; import java.util.UUID; diff --git a/src/main/java/unithon/team5/login/service/AppleTokenValidator.java b/src/main/java/unithon/uniletter/login/service/AppleTokenValidator.java similarity index 97% rename from src/main/java/unithon/team5/login/service/AppleTokenValidator.java rename to src/main/java/unithon/uniletter/login/service/AppleTokenValidator.java index d822467..dcef36e 100644 --- a/src/main/java/unithon/team5/login/service/AppleTokenValidator.java +++ b/src/main/java/unithon/uniletter/login/service/AppleTokenValidator.java @@ -1,4 +1,4 @@ -package unithon.team5.login.service; +package unithon.uniletter.login.service; import java.time.Instant; import java.time.LocalDateTime; diff --git a/src/main/java/unithon/team5/login/service/JwtProvider.java b/src/main/java/unithon/uniletter/login/service/JwtProvider.java similarity index 98% rename from src/main/java/unithon/team5/login/service/JwtProvider.java rename to src/main/java/unithon/uniletter/login/service/JwtProvider.java index 23de544..36255ad 100644 --- a/src/main/java/unithon/team5/login/service/JwtProvider.java +++ b/src/main/java/unithon/uniletter/login/service/JwtProvider.java @@ -1,4 +1,4 @@ -package unithon.team5.login.service; +package unithon.uniletter.login.service; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/src/main/java/unithon/team5/login/service/LoginService.java b/src/main/java/unithon/uniletter/login/service/LoginService.java similarity index 90% rename from src/main/java/unithon/team5/login/service/LoginService.java rename to src/main/java/unithon/uniletter/login/service/LoginService.java index 2b5c03e..9db89fb 100644 --- a/src/main/java/unithon/team5/login/service/LoginService.java +++ b/src/main/java/unithon/uniletter/login/service/LoginService.java @@ -1,11 +1,11 @@ -package unithon.team5.login.service; +package unithon.uniletter.login.service; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import unithon.team5.login.dto.LoginRequest; -import unithon.team5.member.Member; -import unithon.team5.member.repository.MemberRepository; +import unithon.uniletter.login.dto.LoginRequest; +import unithon.uniletter.member.Member; +import unithon.uniletter.member.repository.MemberRepository; import java.util.Optional; import java.util.UUID; diff --git a/src/main/java/unithon/team5/member/Member.java b/src/main/java/unithon/uniletter/member/Member.java similarity index 93% rename from src/main/java/unithon/team5/member/Member.java rename to src/main/java/unithon/uniletter/member/Member.java index de27599..be542fc 100644 --- a/src/main/java/unithon/team5/member/Member.java +++ b/src/main/java/unithon/uniletter/member/Member.java @@ -1,11 +1,11 @@ -package unithon.team5.member; +package unithon.uniletter.member; import jakarta.persistence.Column; import jakarta.persistence.Entity; import lombok.Builder; import lombok.Getter; import lombok.ToString; -import unithon.team5.common.BaseEntity; +import unithon.uniletter.common.BaseEntity; import java.util.UUID; diff --git a/src/main/java/unithon/team5/member/repository/MemberRepository.java b/src/main/java/unithon/uniletter/member/repository/MemberRepository.java similarity index 80% rename from src/main/java/unithon/team5/member/repository/MemberRepository.java rename to src/main/java/unithon/uniletter/member/repository/MemberRepository.java index 5760894..40c3150 100644 --- a/src/main/java/unithon/team5/member/repository/MemberRepository.java +++ b/src/main/java/unithon/uniletter/member/repository/MemberRepository.java @@ -1,8 +1,8 @@ -package unithon.team5.member.repository; +package unithon.uniletter.member.repository; import org.springframework.data.jpa.repository.JpaRepository; -import unithon.team5.common.error.NotFoundException; -import unithon.team5.member.Member; +import unithon.uniletter.common.error.NotFoundException; +import unithon.uniletter.member.Member; import java.util.Optional; import java.util.UUID; diff --git a/src/main/java/unithon/team5/message/Message.java b/src/main/java/unithon/uniletter/message/Message.java similarity index 94% rename from src/main/java/unithon/team5/message/Message.java rename to src/main/java/unithon/uniletter/message/Message.java index 90ade55..74b564a 100644 --- a/src/main/java/unithon/team5/message/Message.java +++ b/src/main/java/unithon/uniletter/message/Message.java @@ -1,12 +1,12 @@ -package unithon.team5.message; +package unithon.uniletter.message; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.EnumType; import jakarta.persistence.Enumerated; import lombok.Getter; -import unithon.team5.common.BaseEntity; -import unithon.team5.event.EventType; +import unithon.uniletter.common.BaseEntity; +import unithon.uniletter.event.EventType; import java.time.LocalDate; import java.util.Optional; diff --git a/src/main/java/unithon/team5/message/controller/MessageController.java b/src/main/java/unithon/uniletter/message/controller/MessageController.java similarity index 79% rename from src/main/java/unithon/team5/message/controller/MessageController.java rename to src/main/java/unithon/uniletter/message/controller/MessageController.java index 462dff3..99a6f64 100644 --- a/src/main/java/unithon/team5/message/controller/MessageController.java +++ b/src/main/java/unithon/uniletter/message/controller/MessageController.java @@ -1,16 +1,16 @@ -package unithon.team5.message.controller; +package unithon.uniletter.message.controller; import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; -import unithon.team5.member.Member; -import unithon.team5.message.dto.MessageListResponse; -import unithon.team5.message.dto.MessageRequest; -import unithon.team5.message.dto.MessageResponse; -import unithon.team5.message.dto.UnreadMessageResponse; -import unithon.team5.message.service.MessageService; +import unithon.uniletter.member.Member; +import unithon.uniletter.message.dto.MessageListResponse; +import unithon.uniletter.message.dto.MessageRequest; +import unithon.uniletter.message.dto.MessageResponse; +import unithon.uniletter.message.dto.UnreadMessageResponse; +import unithon.uniletter.message.service.MessageService; import java.util.List; import java.util.UUID; diff --git a/src/main/java/unithon/team5/message/controller/MessageControllerDocs.java b/src/main/java/unithon/uniletter/message/controller/MessageControllerDocs.java similarity index 95% rename from src/main/java/unithon/team5/message/controller/MessageControllerDocs.java rename to src/main/java/unithon/uniletter/message/controller/MessageControllerDocs.java index 1229ca8..56c8ede 100644 --- a/src/main/java/unithon/team5/message/controller/MessageControllerDocs.java +++ b/src/main/java/unithon/uniletter/message/controller/MessageControllerDocs.java @@ -1,4 +1,4 @@ -package unithon.team5.message.controller; +package unithon.uniletter.message.controller; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; @@ -11,12 +11,12 @@ import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; -import unithon.team5.common.error.ErrorResponse; -import unithon.team5.member.Member; -import unithon.team5.message.dto.MessageListResponse; -import unithon.team5.message.dto.MessageRequest; -import unithon.team5.message.dto.MessageResponse; -import unithon.team5.message.dto.UnreadMessageResponse; +import unithon.uniletter.common.error.ErrorResponse; +import unithon.uniletter.member.Member; +import unithon.uniletter.message.dto.MessageListResponse; +import unithon.uniletter.message.dto.MessageRequest; +import unithon.uniletter.message.dto.MessageResponse; +import unithon.uniletter.message.dto.UnreadMessageResponse; import java.util.UUID; diff --git a/src/main/java/unithon/team5/message/dto/MessageEventResponse.java b/src/main/java/unithon/uniletter/message/dto/MessageEventResponse.java similarity index 83% rename from src/main/java/unithon/team5/message/dto/MessageEventResponse.java rename to src/main/java/unithon/uniletter/message/dto/MessageEventResponse.java index 5ae1d69..6a88f1a 100644 --- a/src/main/java/unithon/team5/message/dto/MessageEventResponse.java +++ b/src/main/java/unithon/uniletter/message/dto/MessageEventResponse.java @@ -1,10 +1,10 @@ -package unithon.team5.message.dto; +package unithon.uniletter.message.dto; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; -import unithon.team5.event.Event; -import unithon.team5.event.EventType; +import unithon.uniletter.event.Event; +import unithon.uniletter.event.EventType; import java.time.LocalDate; import java.util.UUID; diff --git a/src/main/java/unithon/team5/message/dto/MessageListResponse.java b/src/main/java/unithon/uniletter/message/dto/MessageListResponse.java similarity index 70% rename from src/main/java/unithon/team5/message/dto/MessageListResponse.java rename to src/main/java/unithon/uniletter/message/dto/MessageListResponse.java index bb8f662..a58569a 100644 --- a/src/main/java/unithon/team5/message/dto/MessageListResponse.java +++ b/src/main/java/unithon/uniletter/message/dto/MessageListResponse.java @@ -1,4 +1,4 @@ -package unithon.team5.message.dto; +package unithon.uniletter.message.dto; import java.util.List; diff --git a/src/main/java/unithon/team5/message/dto/MessageRequest.java b/src/main/java/unithon/uniletter/message/dto/MessageRequest.java similarity index 89% rename from src/main/java/unithon/team5/message/dto/MessageRequest.java rename to src/main/java/unithon/uniletter/message/dto/MessageRequest.java index be83a84..8eb1158 100644 --- a/src/main/java/unithon/team5/message/dto/MessageRequest.java +++ b/src/main/java/unithon/uniletter/message/dto/MessageRequest.java @@ -1,4 +1,4 @@ -package unithon.team5.message.dto; +package unithon.uniletter.message.dto; import jakarta.validation.constraints.Future; import jakarta.validation.constraints.NotEmpty; @@ -7,7 +7,7 @@ import lombok.Getter; import lombok.NoArgsConstructor; import org.hibernate.validator.constraints.Length; -import unithon.team5.event.EventType; +import unithon.uniletter.event.EventType; import java.time.LocalDate; import java.util.UUID; diff --git a/src/main/java/unithon/team5/message/dto/MessageResponse.java b/src/main/java/unithon/uniletter/message/dto/MessageResponse.java similarity index 87% rename from src/main/java/unithon/team5/message/dto/MessageResponse.java rename to src/main/java/unithon/uniletter/message/dto/MessageResponse.java index 00a7220..ca41cd4 100644 --- a/src/main/java/unithon/team5/message/dto/MessageResponse.java +++ b/src/main/java/unithon/uniletter/message/dto/MessageResponse.java @@ -1,11 +1,11 @@ -package unithon.team5.message.dto; +package unithon.uniletter.message.dto; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; -import unithon.team5.event.Event; -import unithon.team5.event.EventType; -import unithon.team5.message.Message; +import unithon.uniletter.event.Event; +import unithon.uniletter.event.EventType; +import unithon.uniletter.message.Message; import java.time.LocalDate; import java.util.UUID; diff --git a/src/main/java/unithon/team5/message/dto/UnreadMessageResponse.java b/src/main/java/unithon/uniletter/message/dto/UnreadMessageResponse.java similarity index 71% rename from src/main/java/unithon/team5/message/dto/UnreadMessageResponse.java rename to src/main/java/unithon/uniletter/message/dto/UnreadMessageResponse.java index 7d35b63..98c837b 100644 --- a/src/main/java/unithon/team5/message/dto/UnreadMessageResponse.java +++ b/src/main/java/unithon/uniletter/message/dto/UnreadMessageResponse.java @@ -1,4 +1,4 @@ -package unithon.team5.message.dto; +package unithon.uniletter.message.dto; import java.util.List; diff --git a/src/main/java/unithon/team5/message/repository/MessageRepository.java b/src/main/java/unithon/uniletter/message/repository/MessageRepository.java similarity index 80% rename from src/main/java/unithon/team5/message/repository/MessageRepository.java rename to src/main/java/unithon/uniletter/message/repository/MessageRepository.java index 27152f4..4d37078 100644 --- a/src/main/java/unithon/team5/message/repository/MessageRepository.java +++ b/src/main/java/unithon/uniletter/message/repository/MessageRepository.java @@ -1,8 +1,8 @@ -package unithon.team5.message.repository; +package unithon.uniletter.message.repository; import org.springframework.data.jpa.repository.JpaRepository; -import unithon.team5.common.error.NotFoundException; -import unithon.team5.message.Message; +import unithon.uniletter.common.error.NotFoundException; +import unithon.uniletter.message.Message; import java.util.List; import java.util.UUID; diff --git a/src/main/java/unithon/team5/message/service/MessageService.java b/src/main/java/unithon/uniletter/message/service/MessageService.java similarity index 84% rename from src/main/java/unithon/team5/message/service/MessageService.java rename to src/main/java/unithon/uniletter/message/service/MessageService.java index 5edc733..518f9f8 100644 --- a/src/main/java/unithon/team5/message/service/MessageService.java +++ b/src/main/java/unithon/uniletter/message/service/MessageService.java @@ -1,17 +1,17 @@ -package unithon.team5.message.service; +package unithon.uniletter.message.service; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import unithon.team5.common.error.ForbiddenException; -import unithon.team5.event.repository.EventRepository; -import unithon.team5.member.Member; -import unithon.team5.member.repository.MemberRepository; -import unithon.team5.message.Message; -import unithon.team5.message.dto.MessageRequest; -import unithon.team5.message.dto.MessageResponse; -import unithon.team5.message.repository.MessageRepository; +import unithon.uniletter.common.error.ForbiddenException; +import unithon.uniletter.event.repository.EventRepository; +import unithon.uniletter.member.Member; +import unithon.uniletter.member.repository.MemberRepository; +import unithon.uniletter.message.Message; +import unithon.uniletter.message.dto.MessageRequest; +import unithon.uniletter.message.dto.MessageResponse; +import unithon.uniletter.message.repository.MessageRepository; import java.util.List; import java.util.UUID; diff --git a/src/test/java/unithon/team5/Team5ApplicationTests.java b/src/test/java/unithon/uniletter/UniletterApplicationTests.java similarity index 71% rename from src/test/java/unithon/team5/Team5ApplicationTests.java rename to src/test/java/unithon/uniletter/UniletterApplicationTests.java index 147ac88..b16a969 100644 --- a/src/test/java/unithon/team5/Team5ApplicationTests.java +++ b/src/test/java/unithon/uniletter/UniletterApplicationTests.java @@ -1,10 +1,10 @@ -package unithon.team5; +package unithon.uniletter; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest -class Team5ApplicationTests { +class UniletterApplicationTests { @Test void contextLoads() { From 0623b9a5fc574430fa048cbdd9f5d564401d9754 Mon Sep 17 00:00:00 2001 From: Min-Ho CHO <66549638+chominho96@users.noreply.github.com> Date: Sun, 7 Apr 2024 00:02:13 +0900 Subject: [PATCH 2/2] setting: change swagger name --- src/main/java/unithon/uniletter/config/SwaggerConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/unithon/uniletter/config/SwaggerConfig.java b/src/main/java/unithon/uniletter/config/SwaggerConfig.java index 54cd453..deb1bea 100644 --- a/src/main/java/unithon/uniletter/config/SwaggerConfig.java +++ b/src/main/java/unithon/uniletter/config/SwaggerConfig.java @@ -19,8 +19,8 @@ public OpenAPI openAPI() { } private Info getPayoutServerInfo() { - return new Info().title("Secret Message Server API") - .description("Secret Message Server API 명세서입니다.") + return new Info().title("Uniletter Server API") + .description("Uniletter Server API 명세서입니다.") .version("1.0.0"); } }