-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: get products in clothingSales api (#155)
* feature: get products in clothingSales api * chore: update swagger docs * chore: delete unused
- Loading branch information
Showing
6 changed files
with
114 additions
and
29 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
24 changes: 24 additions & 0 deletions
24
...ain/java/com/example/repick/domain/clothingSales/dto/GetSalesProductsByClothingSales.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,24 @@ | ||
package com.example.repick.domain.clothingSales.dto; | ||
|
||
import com.example.repick.domain.product.entity.Product; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record GetSalesProductsByClothingSales( | ||
@Schema(description = "μν ID") Long productId, | ||
@Schema(description = "μν λΈλλ") String productBrand, | ||
@Schema(description = "μνλͺ ") String productName, | ||
@Schema(description = "μν μ΄λ―Έμ§") String productImageUrl, | ||
@Schema(description = "μν κ°κ²©") Long productPrice, | ||
@Schema(description = "μ μ°κΈ") Long settlementAmount | ||
) { | ||
public static GetSalesProductsByClothingSales from(Product product) { | ||
return new GetSalesProductsByClothingSales( | ||
product.getId(), | ||
product.getBrandName(), | ||
product.getProductName(), | ||
product.getThumbnailImageUrl(), | ||
product.getPrice(), | ||
product.getSettlement() | ||
); | ||
} | ||
} |
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
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