| | |
| | | package com.panzhihua.common.model.dtos.grid; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import java.util.Date; |
| | | |
| | | import javax.validation.constraints.Max; |
| | | import javax.validation.constraints.Pattern; |
| | | |
| | | import org.hibernate.validator.constraints.Length; |
| | | |
| | | import javax.validation.constraints.Max; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Pattern; |
| | | import java.util.Date; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.google.common.base.CaseFormat; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 分页查询表单 |
| | |
| | | * @version 1.0 |
| | | * @since 1.0 |
| | | * @date 2021-05-26 |
| | | * */ |
| | | */ |
| | | @Data |
| | | @ApiModel("查询APP应用版本信息请求参数") |
| | | public class PageEventApplicationAppReleaseDTO { |
| | |
| | | private Long pageSize = 10L; |
| | | |
| | | @ApiModelProperty(value = "排序字段, 默认createAt", example = "createAt") |
| | | private String sortAttr="createAt"; |
| | | private String sortAttr = "createAt"; |
| | | |
| | | @ApiModelProperty(value = "排序方式: asc/desc(默认)", example = "desc") |
| | | @Pattern(regexp = "asc|desc|ASC|DESC") |
| | | private String sortType="desc"; |
| | | |
| | | public String getSortColumns(){ |
| | | String dbColumn = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, sortAttr); |
| | | return dbColumn; |
| | | } |
| | | |
| | | |
| | | private String sortType = "desc"; |
| | | @Max(9223372036854775807L) |
| | | @ApiModelProperty(value = "id", hidden = false, example = "1") |
| | | private Long id; |
| | | |
| | | |
| | | @Max(32767) |
| | | @ApiModelProperty(value = "应用ID", hidden = false, example = "1") |
| | | private Integer productId; |
| | | |
| | | |
| | | @Length(max=50) |
| | | @Length(max = 50) |
| | | @ApiModelProperty(value = "应用名称", hidden = false, example = "") |
| | | private String productName; |
| | | |
| | | |
| | | @Length(max=255) |
| | | @Length(max = 255) |
| | | @ApiModelProperty(value = "版本编号", hidden = false, example = "") |
| | | private String releaseNumber; |
| | | |
| | | |
| | | @Max(32767) |
| | | @ApiModelProperty(value = "通知行为(1、强制更新2、提示更新)", hidden = false, example = "1") |
| | | private Integer action; |
| | | |
| | | |
| | | @Length(max=255) |
| | | @Length(max = 255) |
| | | @ApiModelProperty(value = "版本地址", hidden = false, example = "") |
| | | private String url; |
| | | |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @ApiModelProperty(value = "创建时间-开始时间", hidden = false, example = "2021-05-01 18:05:50") |
| | | private Date createAtBegin; |
| | | @ApiModelProperty(value = "创建时间-结束时间", hidden = false, example = "2021-05-01 18:05:50") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createAtEnd; |
| | | |
| | | |
| | | @Max(9223372036854775807L) |
| | | @ApiModelProperty(value = "创建人", hidden = false, example = "1") |
| | | private Long createBy; |
| | | |
| | | |
| | | @ApiModelProperty(value = "(当前操作)用户ID", hidden = true, example = "1") |
| | | private Long userId; |
| | | |
| | | public String getSortColumns() { |
| | | String dbColumn = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, sortAttr); |
| | | return dbColumn; |
| | | } |
| | | |
| | | } |