Skip to content

Commit

Permalink
refactor(convention): 코드 컨벤션 준수하도록 import문 자동 정렬 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
mingmingmon committed Dec 26, 2024
1 parent f76a53b commit ce292ae
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
Expand All @@ -12,8 +13,6 @@
import page.clab.api.domain.community.board.application.port.in.RetrieveHotBoardsUseCase;
import page.clab.api.global.common.dto.ApiResponse;

import java.util.List;

@RestController
@RequestMapping("/api/v1/boards")
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package page.clab.api.domain.community.board.adapter.out.persistence;

import java.time.LocalDateTime;
import java.util.List;
import java.util.stream.Collectors;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
Expand All @@ -10,10 +13,6 @@
import page.clab.api.domain.community.board.domain.BoardCategory;
import page.clab.api.global.exception.NotFoundException;

import java.time.LocalDateTime;
import java.util.List;
import java.util.stream.Collectors;

@Component
@RequiredArgsConstructor
public class BoardPersistenceAdapter implements
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package page.clab.api.domain.community.board.adapter.out.persistence;

import java.util.List;
import java.util.Objects;
import java.util.Set;
import lombok.RequiredArgsConstructor;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import page.clab.api.domain.community.board.application.port.out.RegisterHotBoardPort;
import page.clab.api.domain.community.board.application.port.out.RemoveHotBoardPort;
import page.clab.api.domain.community.board.application.port.out.RetrieveHotBoardPort;

import java.util.List;
import java.util.Objects;
import java.util.Set;

@Component
@RequiredArgsConstructor
public class RedisHotBoardPersistenceAdapter implements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import page.clab.api.domain.community.board.application.dto.response.BoardDetailsResponseDto;
import page.clab.api.domain.community.board.application.dto.response.BoardEmojiCountResponseDto;
import page.clab.api.domain.community.board.application.dto.response.BoardHashtagResponseDto;
import page.clab.api.domain.community.board.application.dto.response.BoardEmojiToggleResponseDto;
import page.clab.api.domain.community.board.application.dto.response.BoardListResponseDto;
import page.clab.api.domain.community.board.application.dto.response.BoardMyResponseDto;
import page.clab.api.domain.community.board.application.dto.response.BoardOverviewResponseDto;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package page.clab.api.domain.community.board.application.port.in;

import page.clab.api.domain.community.board.application.dto.response.BoardListResponseDto;

import java.util.List;
import page.clab.api.domain.community.board.application.dto.response.BoardListResponseDto;

public interface RetrieveHotBoardsUseCase {
List<BoardListResponseDto> retrieveHotBoards(String strategyName);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package page.clab.api.domain.community.board.application.port.out;

import java.time.LocalDateTime;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import page.clab.api.domain.community.board.domain.Board;
import page.clab.api.domain.community.board.domain.BoardCategory;

import java.time.LocalDateTime;
import java.util.List;

public interface RetrieveBoardPort {

Board getById(Long boardId);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
package page.clab.api.domain.community.board.application.service;

import java.time.DayOfWeek;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand All @@ -8,13 +14,6 @@
import page.clab.api.domain.community.board.domain.Board;
import page.clab.api.external.community.comment.application.port.ExternalRetrieveCommentUseCase;

import java.time.DayOfWeek;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;

@Service(HotBoardSelectionStrategies.DEFAULT)
@RequiredArgsConstructor
public class DefaultHotBoardSelectionStrategy implements HotBoardSelectionStrategy {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package page.clab.api.domain.community.board.application.service;

import java.util.List;
import java.util.Map;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
Expand All @@ -8,9 +10,6 @@
import page.clab.api.domain.community.board.application.port.out.RemoveHotBoardPort;
import page.clab.api.domain.community.board.domain.Board;

import java.util.List;
import java.util.Map;

@Service
@RequiredArgsConstructor
public class HotBoardRegisterService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import com.drew.lang.annotations.NotNull;
import jakarta.transaction.Transactional;
import java.util.List;
import java.util.Map;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import page.clab.api.domain.community.board.application.dto.mapper.BoardDtoMapper;
Expand All @@ -15,9 +17,6 @@
import page.clab.api.external.community.comment.application.port.ExternalRetrieveCommentUseCase;
import page.clab.api.external.memberManagement.member.application.port.ExternalRetrieveMemberUseCase;

import java.util.List;
import java.util.Map;

@Service
@RequiredArgsConstructor
public class HotBoardRetrievalService implements RetrieveHotBoardsUseCase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package page.clab.api.domain.community.board.application.service;

import page.clab.api.domain.community.board.domain.Board;

import java.util.List;
import page.clab.api.domain.community.board.domain.Board;

public interface HotBoardSelectionStrategy {
List<Board> getHotBoards();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package page.clab.api.domain.community.hashtag.application.dto.request;

import java.util.ArrayList;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
import page.clab.api.domain.community.hashtag.domain.HashtagCategory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import lombok.Builder;
import lombok.Getter;
import page.clab.api.domain.community.hashtag.domain.HashtagCategory;

@Getter
@Builder
Expand Down

0 comments on commit ce292ae

Please sign in to comment.