Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] MainPageController 클래스명 변경 #72

Merged
merged 23 commits into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading