File tree Expand file tree Collapse file tree
src/main/java/plango/report/presentation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import jakarta .validation .Valid ;
44import lombok .RequiredArgsConstructor ;
55import org .springframework .http .ResponseEntity ;
6+ import org .springframework .security .core .annotation .AuthenticationPrincipal ;
67import org .springframework .web .bind .annotation .*;
78import plango .global .common .response .CommonResponse ;
89import plango .global .common .response .ResponseMessage ;
@@ -20,7 +21,7 @@ public class InconvenienceReportController {
2021 @ PostMapping ("/inconvenience" )
2122 //@Operation(summary = "불편사항 신고", description = "프로필 화면에서 불편사항을 신고합니다.")
2223 public ResponseEntity <CommonResponse <InconvenienceReportSaveResponse >> reportInconvenience (
23- @ RequestHeader ( "X-MEMBER-ID" ) Long memberId ,
24+ @ AuthenticationPrincipal Long memberId ,
2425 @ Valid @ RequestBody InconvenienceReportSaveRequest request
2526 ) {
2627 InconvenienceReportSaveResponse response =
You can’t perform that action at this time.
0 commit comments