package com.liquidnet.service.goblin.dto.manage;

import com.liquidnet.commons.lang.constant.LnsRegex;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.math.BigDecimal;

@ApiModel(value = "GoblinStoreMgtGoodsFilterParam", description = "商品管理:商品列表筛选条件")
@Data
public class GoblinStoreMgtGoodsFilterParam implements Serializable {
    private static final long serialVersionUID = -4698854628491039006L;
    @ApiModelProperty(position = 10, required = true, value = "店铺ID[64]")
    @NotBlank(message = "店铺ID不能为空")
    private String storeId;
    @ApiModelProperty(position = 11, required = true, value = "当前记录起始索引", example = "1")
    @Min(value = 1, message = "起始索引无效")
    @NotNull(message = "起始索引无效")
    private Integer pageNum;
    @ApiModelProperty(position = 12, required = true, value = "每页显示记录数", example = "20")
    @Max(value = 100, message = "显示记录数无效")
    @NotNull(message = "显示记录数无效")
    private Integer pageSize;
    @ApiModelProperty(position = 13, required = false, value = "搜索关键字[128]")
    private String keyword;
    @ApiModelProperty(position = 14, required = false, value = "商品上架状态[0-待上架|1-下架|2-违规|3-上架]", allowableValues = "0,1,2,3")
    private String shelvesStatus;
    @ApiModelProperty(position = 15, required = false, value = "商品一级分类ID[30]")
    private String cateFid;
    @ApiModelProperty(position = 16, required = false, value = "商品二级分类ID[30]")
    private String cateSid;
    @ApiModelProperty(position = 17, required = false, value = "商品三级分类ID[30]")
    private String cateTid;
    @ApiModelProperty(position = 18, required = false, value = "创建日期[yyyy-MM-dd]")
    @Pattern(regexp = LnsRegex.Valid.DATETIME_YMD, message = "创建日期格式有误")
    private String createdDt;
    @ApiModelProperty(position = 19, required = false, value = "价格区间MIN")
    private BigDecimal priceGe;
    @ApiModelProperty(position = 20, required = false, value = "价格区间MAX")
    private BigDecimal priceLe;
}
