feat:更新物品返回数据类型
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user