MsgSysMonitorNoticeDto.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. package com.xy.dto;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import com.xy.utils.PageBean;
  4. import io.swagger.annotations.ApiModelProperty;
  5. import lombok.Data;
  6. import lombok.experimental.Accessors;
  7. import java.time.LocalDateTime;
  8. /**
  9. * <p>
  10. * 系统消息
  11. * </p>
  12. *
  13. * @author 谭斌
  14. * @since 2023-03-13
  15. */
  16. public class MsgSysMonitorNoticeDto {
  17. @Data
  18. @Accessors(chain = true)
  19. public static class SelectList extends Vo {
  20. }
  21. @Data
  22. @Accessors(chain = true)
  23. public static class Page extends Vo {
  24. @ApiModelProperty(value = "分页对象", required = true)
  25. private PageBean page;
  26. }
  27. @Data
  28. @Accessors(chain = true)
  29. public static class Save extends Vo {
  30. }
  31. @Data
  32. @Accessors(chain = true)
  33. public static class Update extends Vo {
  34. }
  35. @Data
  36. @Accessors(chain = true)
  37. public static class Vo {
  38. @ApiModelProperty(value = "id")
  39. private Integer msgId;
  40. @ApiModelProperty(value = "消息类型")
  41. private Integer msgType;
  42. @ApiModelProperty(value = "消息标题")
  43. private String title;
  44. @ApiModelProperty(value = "消息内容")
  45. private String content;
  46. @ApiModelProperty(value = "消息优先级")
  47. private Integer priority;
  48. @ApiModelProperty(value = "发送目标")
  49. private String sendTargets;
  50. @ApiModelProperty(value = "发送类型")
  51. private String channelType;
  52. @ApiModelProperty(value = "发布状态")
  53. private Integer pubState;
  54. @ApiModelProperty(value = "发布时间")
  55. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  56. private LocalDateTime pubTime;
  57. @ApiModelProperty(value = "发布人")
  58. private Integer pubUserId;
  59. @ApiModelProperty(value = "失败时间")
  60. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  61. private LocalDateTime invalidationTime;
  62. @ApiModelProperty(value = "撤销时间")
  63. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  64. private LocalDateTime revokeTime;
  65. @ApiModelProperty(value = "创建时间")
  66. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  67. private LocalDateTime createTime;
  68. }
  69. }