From 8b7258c9427882bb1798f1502eaa35184c6e374e Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:29:18 +0800
Subject: [PATCH] 短信指定楼栋发送
---
src/main/java/org/springblade/modules/messageRecord/entity/MessageUser.java | 80 ++++++++++++++++++++++++----------------
1 files changed, 48 insertions(+), 32 deletions(-)
diff --git a/src/main/java/org/springblade/modules/messageRecord/entity/MessageUser.java b/src/main/java/org/springblade/modules/messageRecord/entity/MessageUser.java
index 1ca0bb6..731261f 100644
--- a/src/main/java/org/springblade/modules/messageRecord/entity/MessageUser.java
+++ b/src/main/java/org/springblade/modules/messageRecord/entity/MessageUser.java
@@ -1,8 +1,6 @@
package org.springblade.modules.messageRecord.entity;
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
@@ -20,43 +18,61 @@
@TableName("blade_message_user")
public class MessageUser implements Serializable {
private static final long serialVersionUID = 1L;
- /**
- * 用户ID
- */
+
+ /** 主键 */
+ @ApiModelProperty(value = "主键ID", example = "")
@TableId(value = "id", type = IdType.ASSIGN_ID)
- private Long id;
- /**
- * 消息ID
- */
- private String messageRecordId;
+ private Long id;
- //用户id
- private String userId;
+ /** 消息记录表主键 */
+ @ApiModelProperty(value = "消息记录表主键", example = "")
+ @TableField("message_record_id")
+ private Long messageRecordId;
- //消息类型
- private String type;
-
- //邮箱
- private String email;
- //手机号
- private String phone;
-
- //是否已读(1、已读;2、未读)
+ /** 是否已读(1、已读;2、未读) */
+ @ApiModelProperty(value = "是否已读(1、已读;2、未读)", example = "")
+ @TableField("is_read")
private String isRead;
- // 1:待发送,2.:发送成功 3:发送失败
- private String sendStatus;
+ /** 用户id */
+ @ApiModelProperty(value = "用户id", example = "")
+ @TableField("user_id")
+ private String userId;
- // 重试次数
- private String retryNumber;
+ /** 消息类型 */
+ @ApiModelProperty(value = "消息类型", example = "")
+ @TableField("type")
+ private String type;
- @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @ApiModelProperty("创建时间")
+ /** 邮箱 */
+ @ApiModelProperty(value = "邮箱", example = "")
+ @TableField("email")
+ private String email;
+
+ /** 电话号码 */
+ @ApiModelProperty(value = "电话号码", example = "")
+ @TableField("phone")
+ private String phone;
+
+ /** 创建时间 */
+ @ApiModelProperty(value = "创建时间", example = "")
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+ @TableField(value = "create_time",fill = FieldFill.INSERT)
private Date createTime;
- @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @ApiModelProperty("更新时间")
+ /** 更新时间 */
+ @ApiModelProperty(value = "更新时间", example = "")
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+ @TableField(value = "update_time",fill = FieldFill.UPDATE)
private Date updateTime;
+
+ /** 1:待发送,2.:发送成功 3:发送失败 */
+ @ApiModelProperty(value = "1:待发送,2.:发送成功 3:发送失败", example = "")
+ @TableField("send_status")
+ private String sendStatus;
+
+ /** 重试次数 */
+ @ApiModelProperty(value = "重试次数", example = "")
+ @TableField("retry_number")
+ private Integer retryNumber;
}
--
Gitblit v1.9.3