123456789101112131415161718192021222324252627282930313233343536 |
- package dto;
- import com.txz.mall.constants.Constants;
- import io.swagger.annotations.ApiModel;
- import io.swagger.annotations.ApiModelProperty;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- import lombok.experimental.Accessors;
- import javax.validation.constraints.NotBlank;
- import java.io.Serializable;
- @Data
- @EqualsAndHashCode(callSuper = false)
- @Accessors(chain = true)
- @ApiModel(value = "ProductRankingRequest对象", description = "商品排行请求对象")
- public class ProductRankingDTO implements Serializable {
- private static final long serialVersionUID = 3362714265772774491L;
- @ApiModelProperty(value = "排序参数: price-价格,category-类目,hotSales-热销,upNew-上新,pageViews-浏览量,collectNum-收藏数,salesNum-销量")
- @NotBlank(message = "请选择排序参数")
- private String sortKey;
- @ApiModelProperty(value = "时间参数")
- @NotBlank(message = "请先选择时间")
- private String dateLimit;
- @ApiModelProperty(value = "页码", example = Constants.DEFAULT_PAGE + "")
- private int page = Constants.DEFAULT_PAGE;
- @ApiModelProperty(value = "每页数量", example = Constants.DEFAULT_LIMIT + "")
- private int size = Constants.DEFAULT_LIMIT;
- }
|