forked from YunaiV/yudao-cloud
-
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.
完成 product 详情 rest 接口
- Loading branch information
YunaiV
committed
Aug 4, 2020
1 parent
11b2f67
commit dfd25c1
Showing
13 changed files
with
115 additions
and
103 deletions.
There are no files selected for viewing
10 changes: 0 additions & 10 deletions
10
...t/product-biz/src/main/java/cn/iocoder/mall/product/biz/config/MQStreamConfiguration.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
...ain/java/cn/iocoder/mall/product/application/vo/users/UsersProductAttrAndValuePairVO.java
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
...t/src/main/java/cn/iocoder/mall/product/application/vo/users/UsersProductSkuDetailVO.java
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
...t/src/main/java/cn/iocoder/mall/product/application/vo/users/UsersProductSpuDetailVO.java
This file was deleted.
Oops, something went wrong.
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
22 changes: 22 additions & 0 deletions
22
...in/java/cn/iocoder/mall/shopweb/controller/product/vo/attr/ProductAttrKeyValueRespVO.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,22 @@ | ||
package cn.iocoder.mall.shopweb.controller.product.vo.attr; | ||
|
||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.Data; | ||
import lombok.experimental.Accessors; | ||
|
||
@ApiModel(value = "商品规格 KEY + VALUE 对的 Response VO") | ||
@Data | ||
@Accessors(chain = true) | ||
public class ProductAttrKeyValueRespVO { | ||
|
||
@ApiModelProperty(value = "规格 KEY 编号", required = true, example = "1") | ||
private Integer attrKeyId; | ||
@ApiModelProperty(value = "规格 KEY 名字", required = true, example = "颜色") | ||
private String attrKeyName; | ||
@ApiModelProperty(value = "规格 VALUE 值", required = true, example = "10") | ||
private Integer attrValueId; | ||
@ApiModelProperty(value = "规格 VALUE 名字", required = true, example = "红色") | ||
private String attrValueName; | ||
|
||
} |
61 changes: 61 additions & 0 deletions
61
...in/java/cn/iocoder/mall/shopweb/controller/product/vo/product/ProductSpuDetailRespVO.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,61 @@ | ||
package cn.iocoder.mall.shopweb.controller.product.vo.product; | ||
|
||
import cn.iocoder.mall.shopweb.controller.product.vo.attr.ProductAttrKeyValueRespVO; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.Data; | ||
import lombok.experimental.Accessors; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
@ApiModel(value = "商品 SPU 详细 Response VO", description = "包括 SKU 信息 VO") | ||
@Data | ||
@Accessors(chain = true) | ||
public class ProductSpuDetailRespVO { | ||
|
||
@ApiModelProperty(value = "SPU 编号", required = true, example = "1") | ||
private Integer id; | ||
|
||
// ========== 基本信息 ========= | ||
@ApiModelProperty(value = "SPU 名字", required = true, example = "芋艿") | ||
private String name; | ||
@ApiModelProperty(value = "卖点", required = true, example = "好吃好玩") | ||
private String sellPoint; | ||
@ApiModelProperty(value = "描述", required = true, example = "我是哈哈哈") | ||
private String description; | ||
@ApiModelProperty(value = "分类编号", required = true, example = "1") | ||
private Integer cid; | ||
@ApiModelProperty(value = "商品主图地址", required = true, example = "http://www.iocoder.cn/xxx.jpg", notes = "多个之间,使用逗号分隔") | ||
private List<String> picUrls; | ||
|
||
// ========== SKU ========= | ||
|
||
/** | ||
* SKU 数组 | ||
*/ | ||
private List<Sku> skus; | ||
|
||
@ApiModel("商品 SKU 详细 Response VO") | ||
@Data | ||
@Accessors(chain = true) | ||
public static class Sku implements Serializable { | ||
|
||
@ApiModelProperty(value = "sku 编号", required = true, example = "1") | ||
private Integer id; | ||
@ApiModelProperty(value = "SPU 编号", required = true, example = "1") | ||
private Integer spuId; | ||
@ApiModelProperty(value = "图片地址", required = true, example = "http://www.iocoder.cn") | ||
private String picURL; | ||
/** | ||
* 规格值数组 | ||
*/ | ||
private List<ProductAttrKeyValueRespVO> attrs; | ||
@ApiModelProperty(value = "价格,单位:分", required = true, example = "100") | ||
private Integer price; | ||
@ApiModelProperty(value = "库存数量", required = true, example = "100") | ||
private Integer quantity; | ||
|
||
} | ||
|
||
} |
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