|
@@ -0,0 +1,153 @@
|
|
|
+package com.xy.dto;
|
|
|
+
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import com.xy.utils.PageBean;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+
|
|
|
+import java.time.LocalDate;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ *
|
|
|
+ * </p>
|
|
|
+ *
|
|
|
+ * @author 谭斌
|
|
|
+ * @since 2023-02-24
|
|
|
+ */
|
|
|
+public class MsgUserMessageDto {
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ public static class SelectList extends Vo {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ public static class Page extends Vo {
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "分页对象", required = true)
|
|
|
+ private PageBean page;
|
|
|
+
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd")
|
|
|
+ @ApiModelProperty(value = "创建时间-起")
|
|
|
+ private LocalDate beginCreateTime;
|
|
|
+
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd")
|
|
|
+ @ApiModelProperty(value = "创建时间-始")
|
|
|
+ private LocalDate endCreateTime;
|
|
|
+
|
|
|
+ public LocalDateTime getBeginCreateTime() {
|
|
|
+ return beginCreateTime == null ? null : beginCreateTime.atTime(0, 0, 0);
|
|
|
+ }
|
|
|
+
|
|
|
+ public LocalDateTime getEndCreateTime() {
|
|
|
+ return endCreateTime == null ? null : endCreateTime.atTime(23, 59, 59);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ public static class Save {
|
|
|
+ @ApiModelProperty(value = "用户id")
|
|
|
+ private Long userId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "消息id")
|
|
|
+ private Long msgId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "状态")
|
|
|
+ private String readState;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "消息类型")
|
|
|
+ private String msgType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 1紧急 2重要 3一般 (默认)
|
|
|
+ */
|
|
|
+ @ApiModelProperty("优先级")
|
|
|
+ private Integer priority;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ public static class Update extends Vo {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ public static class PageVO {
|
|
|
+
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "消息类型")
|
|
|
+ private String msgType;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "消息类型")
|
|
|
+ private String title;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "内容")
|
|
|
+ private String content;
|
|
|
+
|
|
|
+ @ApiModelProperty("优先级 1紧急 2重要 3一般")
|
|
|
+ private Integer priority;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "状态(已读、未读)")
|
|
|
+ private String readState;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "id")
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "用户id")
|
|
|
+ private Long userId;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "消息id")
|
|
|
+ private Long msgId;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "发送时间")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ private LocalDateTime createTime;
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ public static class Vo {
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "id")
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "用户id")
|
|
|
+ private Long userId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "消息id")
|
|
|
+ private Long msgId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "状态")
|
|
|
+ private String readState;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "创建时间")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ private LocalDateTime createTime;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "消息类型")
|
|
|
+ private String msgType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 1紧急 2重要 3一般 (默认)
|
|
|
+ */
|
|
|
+ @ApiModelProperty("优先级")
|
|
|
+ private Integer priority;
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+}
|