feat:更新物品返回数据类型

This commit is contained in:
2026-05-21 22:04:30 +08:00
parent fe89d3cc85
commit 69df40a47d
2 changed files with 1 additions and 14 deletions

View File

@@ -32,18 +32,10 @@ public class ProductDto {
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date expiryDate;
@Schema(description = "总天数")
@JsonView(ReadView.class)
private Integer totalDay;
@Schema(description = "价格")
@PositiveOrZero(message = "商品价格必须大于等于0")
private Double price;
@Schema(description = "日均价格")
@JsonView(ReadView.class)
private Double averagePrice;
@Schema(description = "类别")
private String category;