-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from jupyter471/weekly
Weekly
- Loading branch information
Showing
9 changed files
with
113 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/java/com/helpmeCookies/product/controller/WishController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.helpmeCookies.product.controller; | ||
|
||
import com.helpmeCookies.global.ApiResponse.ApiResponse; | ||
import com.helpmeCookies.global.ApiResponse.SuccessCode; | ||
import com.helpmeCookies.global.jwt.JwtUser; | ||
import com.helpmeCookies.product.dto.ProductPage.Paging; | ||
import com.helpmeCookies.product.service.ProductLikeService; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.security.core.annotation.AuthenticationPrincipal; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
@RequestMapping("/v1/wishes") | ||
@RequiredArgsConstructor | ||
public class WishController { | ||
private ProductLikeService productLikeService; | ||
|
||
@GetMapping | ||
public ResponseEntity<ApiResponse<Paging>> getAllMyLikeProducts( | ||
@AuthenticationPrincipal JwtUser jwtUser, Pageable pageable) { | ||
return ResponseEntity.ok(ApiResponse.success(SuccessCode.OK,productLikeService.getLikeProducts(jwtUser.getId(),pageable))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
src/main/java/com/helpmeCookies/product/entity/OrderStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
package com.helpmeCookies.product.entity; | ||
|
||
public enum OrderStatus { | ||
ORDER, CANCEL | ||
ORDER("핀매 중"), | ||
DONE("거래 완료"), | ||
RESERVED("예약 중"); | ||
|
||
private final String orderStatusType; | ||
|
||
OrderStatus(String orderStatusType) { | ||
this.orderStatusType = orderStatusType; | ||
} | ||
|
||
public String getOrderStatusType() { | ||
return orderStatusType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters