| | |
| | | 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; |
| | |
| | | @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; |
| | | |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty("创建时间") |
| | | /** 用户id */ |
| | | @ApiModelProperty(value = "用户id", example = "") |
| | | @TableField("user_id") |
| | | private String userId; |
| | | |
| | | /** 消息类型 */ |
| | | @ApiModelProperty(value = "消息类型", example = "") |
| | | @TableField("type") |
| | | private String type; |
| | | |
| | | /** 邮箱 */ |
| | | @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; |
| | | } |