|
@@ -0,0 +1,62 @@
|
|
|
+package com.usky.system.domain;
|
|
|
+
|
|
|
+import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
+import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
+import com.usky.common.core.bean.BaseEntity;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ *
|
|
|
+ * @author fyc
|
|
|
+ * @email yuchuan.fu@chinausky.com
|
|
|
+ * @date 2025/3/13
|
|
|
+ */
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+@Slf4j
|
|
|
+@Data
|
|
|
+public class MceRequestVO extends BaseEntity {
|
|
|
+
|
|
|
+ /** 字典标签 */
|
|
|
+ private String infoTypeName;
|
|
|
+
|
|
|
+ /** 消息类型 */
|
|
|
+ @NotBlank(message = "消息类型 infoType 不能为空!")
|
|
|
+ private String infoType;
|
|
|
+
|
|
|
+ /** 消息标题 */
|
|
|
+ @NotBlank(message = "消息标题 infoTitle 不能为空!")
|
|
|
+ private String infoTitle;
|
|
|
+
|
|
|
+ /** 消息内容 */
|
|
|
+ @NotBlank(message = "消息内容 infoContent 不能为空!")
|
|
|
+ private String infoContent;
|
|
|
+
|
|
|
+ /** 消息发布人 */
|
|
|
+ @NotBlank(message = "消息发布人 userName 不能为空!")
|
|
|
+ private String userName;
|
|
|
+
|
|
|
+ /** 消息详情id */
|
|
|
+ @NotNull(message = "消息详情 id 不能为空!")
|
|
|
+ private Integer id;
|
|
|
+
|
|
|
+ /** 消息接收人userId集合 */
|
|
|
+ @NotNull(message = "消息接收人 userIds 不能为空!")
|
|
|
+ private List<Long> userIds;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ ObjectMapper objectMapper = new ObjectMapper();
|
|
|
+ try {
|
|
|
+ return objectMapper.writeValueAsString(this);
|
|
|
+ } catch (JsonProcessingException e) {
|
|
|
+ log.error("MceRequestVO toString error: {}", e.getMessage());
|
|
|
+ return "{}";
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|