Commit 36faf88d49a22ed982e579eb16e98509ed2e2ec5
1 parent
2775dbba
【代码优化】商城:补全 AppProductBrowseHistoryRespVO 注解
Showing
1 changed file
with
5 additions
and
6 deletions
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/app/history/vo/AppProductBrowseHistoryRespVO.java
| @@ -17,20 +17,19 @@ public class AppProductBrowseHistoryRespVO { | @@ -17,20 +17,19 @@ public class AppProductBrowseHistoryRespVO { | ||
| 17 | 17 | ||
| 18 | // ========== 商品相关字段 ========== | 18 | // ========== 商品相关字段 ========== |
| 19 | 19 | ||
| 20 | - @Schema(description = "商品 SPU 名称", example = "赵六") | 20 | + @Schema(description = "商品 SPU 名称", requiredMode = REQUIRED, example = "赵六") |
| 21 | private String spuName; | 21 | private String spuName; |
| 22 | 22 | ||
| 23 | - @Schema(description = "商品封面图", example = "https://domain/pic.png") | 23 | + @Schema(description = "商品封面图", requiredMode = REQUIRED, example = "https://www.iocoder.cn/pic.png") |
| 24 | private String picUrl; | 24 | private String picUrl; |
| 25 | 25 | ||
| 26 | - @Schema(description = "商品单价", example = "100") | 26 | + @Schema(description = "商品单价", requiredMode = REQUIRED, example = "50") |
| 27 | private Integer price; | 27 | private Integer price; |
| 28 | 28 | ||
| 29 | - @Schema(description = "商品销量", example = "100") | 29 | + @Schema(description = "商品销量", requiredMode = REQUIRED, example = "60") |
| 30 | private Integer salesCount; | 30 | private Integer salesCount; |
| 31 | 31 | ||
| 32 | - @Schema(description = "库存", example = "100") | 32 | + @Schema(description = "库存", requiredMode = REQUIRED, example = "80") |
| 33 | private Integer stock; | 33 | private Integer stock; |
| 34 | 34 | ||
| 35 | - | ||
| 36 | } | 35 | } |