Skip to content

Commit 13b2e2c

Browse files
author
marshmallowing
committed
chore: 토큰 여부 설명 추가
1 parent e26df77 commit 13b2e2c

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

src/main/java/com/ongil/backend/domain/advertisement/controller/AdvertisementController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public class AdvertisementController {
2424
@Operation(summary = "홈 화면 할인 광고 목록 조회", description = "메인 배너에 노출될 5개의 광고 목록을 반환합니다.")
2525
@GetMapping("/home")
2626
public DataResponse<List<AdvertisementResponse>> getHomeAdvertisements(
27-
@AuthenticationPrincipal Long userId
2827
) {
2928
List<AdvertisementResponse> result = advertisementService.getHomeAdvertisements();
3029
return DataResponse.from(result);

src/main/java/com/ongil/backend/domain/cart/controller/CartController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import jakarta.validation.Valid;
1717
import lombok.RequiredArgsConstructor;
1818

19-
@Tag(name = "Cart", description = "장바구니 API")
19+
@Tag(name = "Cart", description = "장바구니 API (토큰 필요)")
2020
@RestController
2121
@RequestMapping("/api/carts")
2222
@RequiredArgsConstructor

src/main/java/com/ongil/backend/domain/product/controller/ProductController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public DataResponse<Page<ProductSimpleResponse>> searchProducts(
115115
return DataResponse.from(products);
116116
}
117117

118-
@Operation(summary = "사이즈 가이드 조회", description = "유사 체형 고객의 구매 데이터를 기반으로 사이즈를 추천합니다.")
118+
@Operation(summary = "사이즈 가이드 조회", description = "유사 체형 고객의 구매 데이터를 기반으로 사이즈를 추천합니다. (토큰 필요)")
119119
@GetMapping("/{productId}/size-guide")
120120
public DataResponse<SizeGuideResponse> getSizeGuide(
121121
@PathVariable Long productId, @AuthenticationPrincipal Long userId) {

src/main/java/com/ongil/backend/domain/review/controller/ReviewController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import io.swagger.v3.oas.annotations.tags.Tag;
1818
import lombok.RequiredArgsConstructor;
1919

20-
@Tag(name = "Review", description = "리뷰 API")
20+
@Tag(name = "Review", description = "리뷰 API (토큰 필요)")
2121
@RestController
2222
@RequiredArgsConstructor
2323
public class ReviewController {

src/main/java/com/ongil/backend/domain/search/controller/SearchController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public ResponseEntity<DataResponse<List<String>>> getRecommend() {
4747

4848
// 최근 검색어
4949
@GetMapping("/recent")
50+
@Operation(description = "토큰 필요")
5051
public ResponseEntity<DataResponse<List<String>>> getRecent(
5152
@AuthenticationPrincipal Long userId) {
5253
if (userId == null) {
@@ -58,6 +59,7 @@ public ResponseEntity<DataResponse<List<String>>> getRecent(
5859

5960
// 최근 검색어 개별 삭제
6061
@DeleteMapping("/recent")
62+
@Operation(description = "토큰 필요")
6163
public ResponseEntity<DataResponse<Void>> removeRecent(
6264
@AuthenticationPrincipal Long userId,
6365
@RequestParam String keyword) {
@@ -69,6 +71,7 @@ public ResponseEntity<DataResponse<Void>> removeRecent(
6971

7072
// 최근 검색어 전체 삭제
7173
@DeleteMapping("/recent/all")
74+
@Operation(description = "토큰 필요")
7275
public ResponseEntity<DataResponse<Void>> clearAllRecent(
7376
@AuthenticationPrincipal Long userId) {
7477
if (userId != null) {

src/main/java/com/ongil/backend/domain/wishlist/controller/WishlistController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class WishlistController {
2121

2222
private final WishlistService wishlistService;
2323

24-
@Operation(summary = "상품 찜하기", description = "특정 상품을 찜 목록에 추가합니다.")
24+
@Operation(summary = "상품 찜하기", description = "특정 상품을 찜 목록에 추가합니다.(토큰 필요)")
2525
@PostMapping("/products/{productId}")
2626
public DataResponse<WishlistResponse> addWishlist(
2727
@AuthenticationPrincipal Long userId,
@@ -31,7 +31,7 @@ public DataResponse<WishlistResponse> addWishlist(
3131
return DataResponse.from(response);
3232
}
3333

34-
@Operation(summary = "찜 취소", description = "찜 목록에서 특정 상품을 삭제합니다.")
34+
@Operation(summary = "찜 취소", description = "찜 목록에서 특정 상품을 삭제합니다.(토큰 필요)")
3535
@DeleteMapping("/{wishlistId}")
3636
public DataResponse<String> removeWishlist(
3737
@AuthenticationPrincipal Long userId,
@@ -41,7 +41,7 @@ public DataResponse<String> removeWishlist(
4141
return DataResponse.from("찜 목록에서 삭제되었습니다.");
4242
}
4343

44-
@Operation(summary = "내 찜 목록 조회", description = "로그인한 사용자의 찜 목록을 조회합니다. 카테고리별 필터링 가능합니다.")
44+
@Operation(summary = "내 찜 목록 조회", description = "로그인한 사용자의 찜 목록을 조회합니다. 카테고리별 필터링 가능합니다.(토큰 필요)")
4545
@GetMapping
4646
public DataResponse<List<WishlistResponse>> getMyWishlists(
4747
@AuthenticationPrincipal Long userId,

0 commit comments

Comments
 (0)