【代码优化】商城:补全 AppProductBrowseHistoryRespVO 注解

This commit is contained in:
YunaiV 2024-11-10 18:48:40 +08:00
parent 2775dbbad1
commit 36faf88d49
1 changed files with 5 additions and 6 deletions

View File

@ -17,20 +17,19 @@ public class AppProductBrowseHistoryRespVO {
// ========== 商品相关字段 ========== // ========== 商品相关字段 ==========
@Schema(description = "商品 SPU 名称", example = "赵六") @Schema(description = "商品 SPU 名称", requiredMode = REQUIRED, example = "赵六")
private String spuName; private String spuName;
@Schema(description = "商品封面图", example = "https://domain/pic.png") @Schema(description = "商品封面图", requiredMode = REQUIRED, example = "https://www.iocoder.cn/pic.png")
private String picUrl; private String picUrl;
@Schema(description = "商品单价", example = "100") @Schema(description = "商品单价", requiredMode = REQUIRED, example = "50")
private Integer price; private Integer price;
@Schema(description = "商品销量", example = "100") @Schema(description = "商品销量", requiredMode = REQUIRED, example = "60")
private Integer salesCount; private Integer salesCount;
@Schema(description = "库存", example = "100") @Schema(description = "库存", requiredMode = REQUIRED, example = "80")
private Integer stock; private Integer stock;
} }