| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | /** |
| | |
| | | @ApiModel(value = "ApiProductCategoryPageDto", description = "参数") |
| | | public class ApiProductCategoryPageDto { |
| | | |
| | | @NotNull(message = "页码不能为空") |
| | | @ApiModelProperty(value = "页码", example = "1") |
| | | private Integer pageNow; |
| | | |
| | | @NotNull(message = "每页数量不能为空") |
| | | @ApiModelProperty(value = "每页数量", example = "10") |
| | | private Integer pageSize; |
| | | |
| | | @ApiModelProperty(value = "查询名称", example = "123") |
| | | private String query; |
| | | @NotBlank(message = "父分类不能为空") |
| | | @ApiModelProperty(value = "父分类ID", example = "123") |
| | | private String parentId; |
| | | |
| | | } |