Skip to content

Commit

Permalink
Merge pull request #66 from onetime-with-members/feature/#65/refactor…
Browse files Browse the repository at this point in the history
…-package

[refactor] : 패키지 이동 및 이름을 변경한다
  • Loading branch information
bbbang105 authored Oct 4, 2024
2 parents fc3544d + 1d60c3d commit 9cf2b90
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/main/java/side/onetime/controller/EventController.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.springframework.web.bind.annotation.*;
import side.onetime.dto.EventDto;
import side.onetime.global.common.ApiResponse;
import side.onetime.global.common.constant.SuccessStatus;
import side.onetime.global.common.status.SuccessStatus;
import side.onetime.service.EventService;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.springframework.web.bind.annotation.*;
import side.onetime.dto.MemberDto;
import side.onetime.global.common.ApiResponse;
import side.onetime.global.common.constant.SuccessStatus;
import side.onetime.global.common.status.SuccessStatus;
import side.onetime.service.MemberService;

@RestController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.springframework.web.bind.annotation.*;
import side.onetime.dto.ScheduleDto;
import side.onetime.global.common.ApiResponse;
import side.onetime.global.common.constant.SuccessStatus;
import side.onetime.global.common.status.SuccessStatus;
import side.onetime.service.ScheduleService;

import java.util.List;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/side/onetime/controller/TokenController.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.springframework.web.bind.annotation.RestController;
import side.onetime.dto.TokenDto;
import side.onetime.global.common.ApiResponse;
import side.onetime.global.common.constant.SuccessStatus;
import side.onetime.global.common.status.SuccessStatus;
import side.onetime.service.TokenService;

@RestController
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/side/onetime/controller/UrlController.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.springframework.web.bind.annotation.RestController;
import side.onetime.dto.UrlDto;
import side.onetime.global.common.ApiResponse;
import side.onetime.global.common.constant.SuccessStatus;
import side.onetime.global.common.status.SuccessStatus;
import side.onetime.service.UrlService;

@RestController
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/side/onetime/controller/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.springframework.web.bind.annotation.*;
import side.onetime.dto.UserDto;
import side.onetime.global.common.ApiResponse;
import side.onetime.global.common.constant.SuccessStatus;
import side.onetime.global.common.status.SuccessStatus;
import side.onetime.service.UserService;

@RestController
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/side/onetime/domain/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import side.onetime.global.common.constant.Category;
import side.onetime.domain.enums.Category;
import side.onetime.global.common.dao.BaseEntity;

import java.util.List;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/side/onetime/domain/enums/Category.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package side.onetime.domain.enums;

public enum Category {
DATE, DAY
}
2 changes: 1 addition & 1 deletion src/main/java/side/onetime/dto/EventDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import lombok.Getter;
import lombok.NoArgsConstructor;
import side.onetime.domain.*;
import side.onetime.global.common.constant.Category;
import side.onetime.domain.enums.Category;

import java.time.LocalTime;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler;
import side.onetime.global.common.ApiResponse;
import side.onetime.global.common.code.BaseErrorCode;
import side.onetime.global.common.constant.ErrorStatus;
import side.onetime.global.common.status.ErrorStatus;
import side.onetime.global.common.dto.ErrorReasonDto;

@RestControllerAdvice
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package side.onetime.global.common.constant;
package side.onetime.global.common.status;

import lombok.AllArgsConstructor;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package side.onetime.global.common.constant;
package side.onetime.global.common.status;

import lombok.AllArgsConstructor;
import lombok.Getter;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/side/onetime/service/EventService.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import side.onetime.exception.EventException;
import side.onetime.exception.ScheduleErrorResult;
import side.onetime.exception.ScheduleException;
import side.onetime.global.common.constant.Category;
import side.onetime.domain.enums.Category;
import side.onetime.repository.*;
import side.onetime.util.DateUtil;
import side.onetime.util.JwtUtil;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/side/onetime/service/MemberService.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import side.onetime.domain.Selection;
import side.onetime.dto.MemberDto;
import side.onetime.exception.*;
import side.onetime.global.common.constant.Category;
import side.onetime.domain.enums.Category;
import side.onetime.repository.EventRepository;
import side.onetime.repository.MemberRepository;
import side.onetime.repository.ScheduleRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/side/onetime/util/DateUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import side.onetime.dto.EventDto;
import side.onetime.global.common.constant.Category;
import side.onetime.domain.enums.Category;

import java.time.LocalDate;
import java.time.LocalDateTime;
Expand Down

0 comments on commit 9cf2b90

Please sign in to comment.