Skip to content
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
454d21a
[SRLT-113] Refactor: 멤버도메인 패키지 구조 컨벤션에 맞게 정리하기
SeongHo5356 Dec 30, 2025
991c90c
[SRLT-113] Refactor: auth 유스케이스 네이밍 정리 및 토큰 검증 강화하기
SeongHo5356 Dec 30, 2025
b3e64e9
[SRLT-113] Refactor: auth를 Member의 하위도메인으로 취급하고 패키지를 정리한다
SeongHo5356 Dec 30, 2025
0b65d6e
[SRLT-113] Refactor: tokenProvider과 tokenResolver를 분리한다
SeongHo5356 Dec 30, 2025
65f705e
[SRLT-113] Fix: OAuth2/보안 핸들러 응답 통일 및 auth 슬라이스 테스트 보강하기
SeongHo5356 Dec 30, 2025
b3f0a8c
[SRLT-113] Fix: 함수명을 행위중심으로 변경한다
SeongHo5356 Dec 30, 2025
7c7f1eb
[SRLT-113] Refactor: 각 도메인 로딩 메서드 네이밍 정리 및 member 조회 포트 보강
SeongHo5356 Dec 30, 2025
318c4d3
[SRLT-113] Docs: auth ApiDoc 에러 응답을 정리한다
SeongHo5356 Dec 30, 2025
2a22edb
[SRLT-113] Docs: 개발가이드에 함수네이미 관련 규칙을 추가한다
SeongHo5356 Dec 31, 2025
610d456
[SRLT-113] Refactor: order 결제 포트 분리 및 취소 요청 의존 정리하기
SeongHo5356 Dec 31, 2025
93d00e9
[SRLT-113] Refactor: DTO 네이밍 규칙 추가 및 수정하기
SeongHo5356 Dec 31, 2025
3434424
[SRLT-113] Refactor: auth 입력 DTO를 Input 규칙으로 정리
SeongHo5356 Dec 31, 2025
ed36c93
[SRLT-113] Refactor: auth 입력 DTO를 Input 규칙으로 정리
SeongHo5356 Dec 31, 2025
d80b09e
[SRLT-113] Refactor: expertReport 응답 DTO 분리하고 auth principal 공용화한다
SeongHo5356 Dec 31, 2025
1ca5120
[SRLT-XXX] Refactor: Auth/Member 유스케이스를 정리하고 principal 공용화한다
SeongHo5356 Dec 31, 2025
6d64080
Merge branch 'develop' into SRLT-113-클래스명-정리
SeongHo5356 Dec 31, 2025
2b4d751
update
SeongHo5356 Dec 31, 2025
b3a0864
[SRLT-113] Test: refresh 토큰 재발급 테스트 만료 임박 케이스로 수정
SeongHo5356 Dec 31, 2025
98aa866
[SRLT-113] Docs: Auth/Credential Javadoc 정합성 수정
SeongHo5356 Dec 31, 2025
d46f64c
[SRLT-113] Test: BusinessPlanServiceImplUnitTest 스텁 정합성 수정
SeongHo5356 Dec 31, 2025
9eeae3b
[SRLT-113] Refactor: ExpertApplication count lookup 포트명 통일
SeongHo5356 Dec 31, 2025
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
Expand Up @@ -7,8 +7,8 @@
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import starlight.adapter.auth.security.auth.AuthDetails;
import starlight.adapter.businessplan.webapi.dto.BusinessPlanCreateWithPdfRequest;
import starlight.adapter.member.auth.security.auth.AuthDetails;
import starlight.application.aireport.provided.dto.AiReportResponse;
import starlight.application.aireport.provided.AiReportService;
import starlight.shared.apiPayload.response.ApiResponse;
Expand Down Expand Up @@ -53,4 +53,3 @@ public ApiResponse<AiReportResponse> getAiReport(
return ApiResponse.success(aiReportService.getAiReport(planId, authDetails.getMemberId()));
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import org.springframework.http.MediaType;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.*;
import starlight.adapter.auth.security.auth.AuthDetails;
import starlight.shared.dto.infrastructure.PreSignedUrlResponse;
import starlight.application.aireport.required.PresignedUrlProvider;
import starlight.adapter.aireport.webapi.swagger.ImageApiDoc;
import starlight.shared.auth.AuthenticatedMember;
import starlight.shared.apiPayload.response.ApiResponse;

@RestController
Expand All @@ -19,7 +19,7 @@ public class ImageController implements ImageApiDoc {

@GetMapping(value = "/upload-url", produces = MediaType.APPLICATION_JSON_VALUE)
public ApiResponse<PreSignedUrlResponse> getPresignedUrl(
@AuthenticationPrincipal AuthDetails authDetails,
@AuthenticationPrincipal AuthenticatedMember authDetails,
@RequestParam String fileName
) {
return ApiResponse.success(presignedUrlReader.getPreSignedUrl(authDetails.getMemberId(), fileName));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import starlight.adapter.auth.security.auth.AuthDetails;
import starlight.shared.auth.AuthenticatedMember;
import starlight.shared.dto.infrastructure.PreSignedUrlResponse;
import starlight.shared.apiPayload.response.ApiResponse;

Expand Down Expand Up @@ -46,7 +46,7 @@ public interface ImageApiDoc {
})
@GetMapping(value = "/v1/image/upload-url", produces = MediaType.APPLICATION_JSON_VALUE)
ApiResponse<PreSignedUrlResponse> getPresignedUrl(
@AuthenticationPrincipal AuthDetails authDetails,
@AuthenticationPrincipal AuthenticatedMember authDetails,
@io.swagger.v3.oas.annotations.Parameter(description = "파일명", required = true) @RequestParam String fileName
);

Expand Down Expand Up @@ -77,4 +77,3 @@ ApiResponse<?> finalizePublic(
@io.swagger.v3.oas.annotations.Parameter(description = "S3 Object URL", required = true) @RequestParam String objectUrl
);
}

This file was deleted.

This file was deleted.

This file was deleted.

54 changes: 0 additions & 54 deletions src/main/java/starlight/adapter/auth/webapi/AuthController.java

This file was deleted.

154 changes: 0 additions & 154 deletions src/main/java/starlight/adapter/auth/webapi/swagger/AuthApiDoc.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class BusinessPlanJpa implements BusinessPlanQuery {
private final BusinessPlanRepository businessPlanRepository;

@Override
public BusinessPlan getOrThrow(Long id) {
public BusinessPlan findByIdOrThrow(Long id) {
return businessPlanRepository.findById(id).orElseThrow(
() -> new BusinessPlanException(BusinessPlanErrorType.BUSINESS_PLAN_NOT_FOUND)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import starlight.adapter.auth.security.auth.AuthDetails;
import starlight.adapter.member.auth.security.auth.AuthDetails;
import starlight.adapter.businessplan.webapi.dto.BusinessPlanCreateRequest;
import starlight.adapter.businessplan.webapi.dto.BusinessPlanCreateWithPdfRequest;
import starlight.adapter.businessplan.webapi.dto.SubSectionCreateRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class ExpertJpa implements ExpertQueryPort,
private final ExpertRepository repository;

@Override
public Expert findById(Long id) {
public Expert findByIdOrThrow(Long id) {
return repository.findById(id).orElseThrow(
() -> new ExpertException(ExpertErrorType.EXPERT_NOT_FOUND)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.thymeleaf.context.Context;
import org.thymeleaf.spring6.SpringTemplateEngine;
import starlight.application.expertApplication.required.EmailSender;
import starlight.application.expertApplication.event.FeedbackRequestDto;
import starlight.application.expertApplication.event.FeedbackRequestInput;
import starlight.domain.expertApplication.exception.ExpertApplicationErrorType;
import starlight.domain.expertApplication.exception.ExpertApplicationException;

Expand All @@ -28,7 +28,7 @@ public class SMTPEmailSender implements EmailSender {
private String senderEmail;

@Override
public void sendFeedbackRequestMail(FeedbackRequestDto dto) {
public void sendFeedbackRequestMail(FeedbackRequestInput dto) {
try {
MimeMessage message = javaMailSender.createMimeMessage();
MimeMessageHelper helper = new MimeMessageHelper(message, true, "UTF-8");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import starlight.adapter.auth.security.auth.AuthDetails;
import starlight.adapter.expertApplication.webapi.swagger.ExpertApplicationApiDoc;
import starlight.application.expertApplication.provided.ExpertApplicationQueryUseCase;
import starlight.application.expertApplication.provided.ExpertApplicationCommandUseCase;
import starlight.shared.auth.AuthenticatedMember;
import starlight.shared.apiPayload.response.ApiResponse;

import java.util.List;
Expand All @@ -35,9 +35,9 @@ public ApiResponse<String> requestFeedback(
@PathVariable Long expertId,
@RequestParam Long businessPlanId,
@RequestParam("file") MultipartFile file,
@AuthenticationPrincipal AuthDetails auth
@AuthenticationPrincipal AuthenticatedMember auth
) throws Exception {
applicationServiceUseCase.requestFeedback(expertId, businessPlanId, file, auth.getUser().getName());
applicationServiceUseCase.requestFeedback(expertId, businessPlanId, file, auth.getMemberName());
return ApiResponse.success("피드백 요청이 전달되었습니다.");
}
}
Loading
Loading