Skip to content

Commit

Permalink
Merge pull request #68 from Unithon11th-Team5/setting/#66
Browse files Browse the repository at this point in the history
setting: change project name
  • Loading branch information
chominho96 authored Apr 6, 2024
2 parents 6976563 + 0623b9a commit 8073d61
Show file tree
Hide file tree
Showing 46 changed files with 125 additions and 125 deletions.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = 'team5'
rootProject.name = 'uniletter-be'
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package unithon.team5;
package unithon.uniletter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

@SpringBootApplication
@EnableJpaAuditing
public class Team5Application {
public class UniletterApplication {

public static void main(String[] args) {
SpringApplication.run(Team5Application.class, args);
SpringApplication.run(UniletterApplication.class, args);
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.common;
package unithon.uniletter.common;

import jakarta.persistence.*;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.common.error;
package unithon.uniletter.common.error;

public class BaseException extends RuntimeException {
private final String message;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.common.error;
package unithon.uniletter.common.error;

public record ErrorResponse(
int code,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.common.error;
package unithon.uniletter.common.error;

public class ForbiddenException extends BaseException {
public ForbiddenException(final String message) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.common.error;
package unithon.uniletter.common.error;

import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.common.error;
package unithon.uniletter.common.error;

public class NotFoundException extends BaseException {
public NotFoundException(final String message) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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");
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package unithon.team5.event;
package unithon.uniletter.event;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.event;
package unithon.uniletter.event;

import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.event.dto;
package unithon.uniletter.event.dto;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.event.dto;
package unithon.uniletter.event.dto;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -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) {

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.log;
package unithon.uniletter.log;

import jakarta.servlet.*;
import jakarta.servlet.http.HttpServletRequest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.login;
package unithon.uniletter.login;

import static org.springframework.http.HttpHeaders.AUTHORIZATION;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.login;
package unithon.uniletter.login;

import jakarta.servlet.http.HttpServletRequest;
import java.util.UUID;
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.login.dto;
package unithon.uniletter.login.dto;

public record JwtTokenResponse(String token) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.login.dto;
package unithon.uniletter.login.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package unithon.team5.login.service;
package unithon.uniletter.login.service;

import java.time.Instant;
import java.time.LocalDateTime;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Loading

0 comments on commit 8073d61

Please sign in to comment.