From a2c792ee79e69224d71dc6204c6cc01f92b9384e Mon Sep 17 00:00:00 2001 From: manailin <261030956@qq.com> Date: 星期一, 23 八月 2021 16:14:46 +0800 Subject: [PATCH] [新增]整理代码规范 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/PageEldersAuthFeedbackDTO.java | 37 +++++++++++++++++++------------------ 1 files changed, 19 insertions(+), 18 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/PageEldersAuthFeedbackDTO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/PageEldersAuthFeedbackDTO.java index a65e3bb..68eaa91 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/PageEldersAuthFeedbackDTO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/community/PageEldersAuthFeedbackDTO.java @@ -1,17 +1,18 @@ package com.panzhihua.common.model.dtos.community; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import org.hibernate.validator.constraints.Length; +import java.util.Date; 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 org.hibernate.validator.constraints.Length; + import com.fasterxml.jackson.annotation.JsonFormat; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; /** * 分页查询表单 @@ -19,7 +20,7 @@ * @author cedoo email:cedoo(a)qq.com * @version 1.0 * @since 1.0 - * */ + */ @Data @ApiModel("查询高龄认证社区反馈请求参数") public class PageEldersAuthFeedbackDTO { @@ -31,22 +32,23 @@ private Long pageSize = 10L; @ApiModelProperty(value = "排序字段, 默认createAt", example = "createAt") - private String sortBy="createAt"; + private String sortBy = "createAt"; @ApiModelProperty(value = "排序方式: asc/desc(默认)", example = "desc") @Pattern(regexp = "asc|desc|ASC|DESC") - private String order="desc"; + private String order = "desc"; @Max(9223372036854775807L) @ApiModelProperty(value = "ID", hidden = false, example = "1") private Long id; - @NotNull() @Max(9223372036854775807L) + @NotNull() + @Max(9223372036854775807L) @ApiModelProperty(value = "创建人", hidden = false, example = "1") private Long createBy; - @NotNull() - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + @NotNull() + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @ApiModelProperty(value = "创建时间", hidden = false, example = "2021-05-01 18:05:50") private Date createAt; @@ -54,18 +56,17 @@ @ApiModelProperty(value = "更新人", hidden = false, example = "1") private Long updateBy; - - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @ApiModelProperty(value = "更新时间", hidden = false, example = "2021-05-01 18:05:50") private Date updateAt; - @NotNull() @Max(9223372036854775807L) + @NotNull() + @Max(9223372036854775807L) @ApiModelProperty(value = "认证ID", hidden = false, example = "1") private Long authId; - @Length(max=1024) + @Length(max = 1024) @ApiModelProperty(value = "反馈结果", hidden = false, example = "") private String feedBack; - } -- Gitblit v1.7.1