From 7ef4892f9f24f941aca37e6b3991b808a0aca619 Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期五, 08 九月 2023 11:16:35 +0800 Subject: [PATCH] 优化 --- ycl-platform/src/main/java/com/ycl/entity/message/Message.java | 44 ++++++++++++++++++++++++++++++++------------ 1 files changed, 32 insertions(+), 12 deletions(-) diff --git a/ycl-platform/src/main/java/com/ycl/entity/message/Message.java b/ycl-platform/src/main/java/com/ycl/entity/message/Message.java index 5a7b449..78b77ab 100644 --- a/ycl-platform/src/main/java/com/ycl/entity/message/Message.java +++ b/ycl-platform/src/main/java/com/ycl/entity/message/Message.java @@ -9,14 +9,12 @@ import lombok.Data; import lombok.EqualsAndHashCode; -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; import java.io.Serializable; import java.util.Date; /** * <p> - * 娑堟伅瀹炰綋绫� + * 娑堟伅瀹炰綋绫� * </p> * * @author mg @@ -38,27 +36,40 @@ private Long id; /** + * 娑堟伅鐖剁被Id + */ + @TableField("parent_id") + @ApiModelProperty(value = "娑堟伅鐖剁被Id") + private Long parentId; + + + /** * 鏍囬 */ @TableField("head") @ApiModelProperty(value = "鏍囬") - @NotBlank(message = "鏍囬涓虹┖") private String head; + + + /** + * 娓犻亾鐮�01-鍐呯珯淇�02-閭欢03-鐭俊 + */ + @TableField("channel_code") + @ApiModelProperty(value = "娓犻亾鐮�01-鍐呯珯淇�02-閭欢03-鐭俊") + private String channelCode; /** * 娑堟伅绫诲瀷 */ @TableField("message_type") - @ApiModelProperty(value = "娑堟伅绫诲瀷") - @NotBlank(message = "娑堟伅绫诲瀷涓虹┖") - private Long messageType; + @ApiModelProperty(value = "濉厖鏍忕洰缂栫爜") + private Integer messageType; /** * 娑堟伅浣� */ @TableField("body") @ApiModelProperty(value = "娑堟伅浣�") - @NotNull(message = "娑堟伅浣撲负绌�") private String body; /** @@ -66,7 +77,6 @@ */ @TableField("target_from") @ApiModelProperty(value = "鍙戦�佽��") - @NotNull(message = "鍙戦�佽�呬负绌�") private String targetFrom; /** @@ -74,7 +84,6 @@ */ @TableField("target_to") @ApiModelProperty(value = "鎺ユ敹鑰�") - @NotBlank(message = "鎺ユ敹鑰呬负绌�") private String targetTo; /** @@ -82,7 +91,6 @@ */ @TableField("message_number") @ApiModelProperty(value = "娑堟伅缂栧彿") - @NotBlank(message = "娑堟伅缂栧彿涓虹┖") private String messageNumber; /** @@ -110,10 +118,17 @@ @ApiModelProperty(value = "鐘舵��0-鏈彂甯�1-宸插彂甯�") private Integer status; /** + * 鏄惁鎵弿0-鏈壂鎻�1-宸叉壂鎻� + */ + @TableField("is_scan") + @ApiModelProperty(value = "鏄惁鎵弿0-鏈壂鎻�1-宸叉壂鎻�") + private Integer isScan; + + /** * 鏄惁鏌ョ湅0-鏈煡鐪�1-宸叉煡鐪� */ @TableField("is_view") - @ApiModelProperty(value = "鐘舵��0-鏈彂甯�1-宸插彂甯�") + @ApiModelProperty(value = "鏄惁鏌ョ湅0-鏈煡鐪�1-宸叉煡鐪�") private Integer isView; /** * 澶囨敞 @@ -152,4 +167,9 @@ @ApiModelProperty(value = "鏇存柊鏃堕棿") private Date updateTime; + @ApiModelProperty(value = "鍝嶅簲缁撴灉") + private String respondResult; + + @ApiModelProperty(value = "鐢佃瘽鍙风爜") + private String phoneNumber; } -- Gitblit v1.8.0