-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOCS] cart, order controller 명세서 설명 추가
- Loading branch information
Showing
4 changed files
with
16 additions
and
2 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
8 changes: 8 additions & 0 deletions
8
server/src/main/java/org/tattour/server/domain/cart/controller/dto/request/CartCountReq.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,9 +1,17 @@ | ||
package org.tattour.server.domain.cart.controller.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import javax.validation.constraints.NotNull; | ||
import lombok.Getter; | ||
|
||
@Schema(description = "장바구니 수량 수정 Request") | ||
@Getter | ||
public class CartCountReq { | ||
@Schema(description = "장바구니 Id") | ||
@NotNull(message = "장바구니 id는 null일 수 없습니다.") | ||
private int cartId; | ||
|
||
@Schema(description = "장바구니 수량") | ||
@NotNull(message = "장바구니 수량 null일 수 없습니다.") | ||
private int count; | ||
} |
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
3 changes: 3 additions & 0 deletions
3
...c/main/java/org/tattour/server/domain/cart/controller/dto/request/UpdateCartCountReq.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,9 +1,12 @@ | ||
package org.tattour.server.domain.cart.controller.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.util.List; | ||
import lombok.Getter; | ||
|
||
@Schema(description = "장바구니 수량 일괄 수정 Request") | ||
@Getter | ||
public class UpdateCartCountReq { | ||
@Schema(description = "장바구니 수량 수정 Request 목록") | ||
private List<CartCountReq> cartCountReqs; | ||
} |