Skip to content

Commit

Permalink
�[Refactor] MainPageController 클래스명 변경 (softeerbootcamp4th#72)
Browse files Browse the repository at this point in the history
* config: jwt 속성을 yml에 설정

* rebase: 원본 develop 브랜치와 병합

* refactor: transactional 어노테이션 수정

* refactor: 변수명 변경

* feat: MainPage 컨트롤러 클래스 생성

* feat: MainPage service 클래스 생성

* feat: StaticResources entity 클래스 생성

* feat: StaticResources repository 클래스 생성

* feat: StaticResourcesUtil 클래스 생성

* feat: 정적 text를 관리하는 enum 생성

* refactor: 변수명 변경

* refactor: 검증 애노테이션 추가

* refactor: DayOfWeek 속성 변경

* refactor: 예외 msg를 응답객체 result에 넣도록 변경

* refactor: 변수명 변경

* refactor: DayOfWeek 속성 변경

* refactor: 검증 애노테이션 추가

* refactor: 검증 상수 추가

* refactor: 변수 타입을 래퍼타입으로 변경

* refactor: 클래스명 변경

* refactor: 클래스명 및 변수명 변경

* feat: final 객체 초기화

---------

Co-authored-by: hyeokson <[email protected]>
  • Loading branch information
2 people authored and DrRivaski committed Aug 12, 2024
1 parent a88eed7 commit cf8557f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.softeer.backend.bo_domain.admin.controller;

import com.softeer.backend.bo_domain.admin.dto.main.MainPageResponseDto;
import com.softeer.backend.bo_domain.admin.service.MainPageService;
import com.softeer.backend.bo_domain.admin.service.AdminMainPageService;
import com.softeer.backend.global.common.response.ResponseDto;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
Expand All @@ -12,11 +12,11 @@
@RequiredArgsConstructor
@RequestMapping("/admin")
public class AdminMainPageController {
private final MainPageService mainPageService;
private final AdminMainPageService adminMainPageService;

@GetMapping("/main")
public ResponseDto<MainPageResponseDto> getMainPage() {
MainPageResponseDto mainPageResponseDto = mainPageService.getMainPage();
MainPageResponseDto mainPageResponseDto = adminMainPageService.getMainPage();

return ResponseDto.onSuccess(mainPageResponseDto);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@Service
@RequiredArgsConstructor
public class MainPageService {
public class AdminMainPageService {

private final FcfsSettingRepository fcfsSettingRepository;
private final DrawSettingRepository drawSettingRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class StaticResourcesUtil {

private final StaticResourcesRepository staticResourcesRepository;

private Map<String, String> s3Urls;
private final Map<String, String> s3Urls = new HashMap<>();

@PostConstruct
public void init() {
Expand Down

0 comments on commit cf8557f

Please sign in to comment.