|
@@ -6,7 +6,9 @@ import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
import lombok.experimental.Accessors;
|
|
|
|
|
|
+import javax.validation.constraints.NotEmpty;
|
|
|
import java.time.LocalDateTime;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -18,6 +20,33 @@ import java.time.LocalDateTime;
|
|
|
*/
|
|
|
public class SysAgreementDto {
|
|
|
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ public static class ListByMemberDto {
|
|
|
+ @NotEmpty(message = "类型不能为空")
|
|
|
+ @ApiModelProperty(value = "类型")
|
|
|
+ private List<String> typeList;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ public static class ListByMemberVo {
|
|
|
+ @ApiModelProperty(value = "id")
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "标题")
|
|
|
+ private String title;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "类型")
|
|
|
+ private String type;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "内容")
|
|
|
+ private String content;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "版本")
|
|
|
+ private String version;
|
|
|
+ }
|
|
|
+
|
|
|
@Data
|
|
|
@Accessors(chain = true)
|
|
|
public static class SelectList extends Vo {
|
|
@@ -35,20 +64,35 @@ public class SysAgreementDto {
|
|
|
|
|
|
@Data
|
|
|
@Accessors(chain = true)
|
|
|
- public static class Save extends Vo {
|
|
|
+ public static class Save {
|
|
|
+ @ApiModelProperty(value = "标题")
|
|
|
+ private String title;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "类型")
|
|
|
+ private String type;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "内容")
|
|
|
+ private String content;
|
|
|
|
|
|
+ @ApiModelProperty(value = "版本")
|
|
|
+ private String version;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "是否显示:0=隐藏,1=显示")
|
|
|
+ private Boolean status;
|
|
|
}
|
|
|
|
|
|
@Data
|
|
|
@Accessors(chain = true)
|
|
|
- public static class Update extends Vo {
|
|
|
-
|
|
|
+ public static class Update extends Save{
|
|
|
+ @ApiModelProperty(value = "id")
|
|
|
+ private Long id;
|
|
|
}
|
|
|
|
|
|
@Data
|
|
|
@Accessors(chain = true)
|
|
|
public static class Vo {
|
|
|
|
|
|
+ @ApiModelProperty(value = "id")
|
|
|
private Long id;
|
|
|
|
|
|
@ApiModelProperty(value = "标题")
|
|
@@ -79,11 +123,6 @@ public class SysAgreementDto {
|
|
|
@ApiModelProperty(value = "更新时间")
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
private LocalDateTime updateTime;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "逻辑删除")
|
|
|
- private Boolean deleted;
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
}
|