xx
wang-hao-jie
2021-11-03 633be87bcdaab325daa6d4f74f5294e14660cfd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package cn.exrick.xboot.core.entity;
 
import cn.exrick.xboot.core.base.XbootBaseEntity;
import cn.exrick.xboot.core.common.constant.CommonConstant;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
 
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
 
/**
 * @author Exrick
 */
@Data
@Accessors(chain = true)
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "t_message_send")
@TableName("t_message_send")
@ApiModel(value = "消息发送详情")
public class MessageSend extends XbootBaseEntity {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value = "关联消息id")
    private String messageId;
 
    @ApiModelProperty(value = "关联用户id")
    private String userId;
 
    @ApiModelProperty(value = "消息参数")
    private String params;
 
    @ApiModelProperty(value = "状态 0默认未读 1已读 2回收站")
    private Integer status = CommonConstant.MESSAGE_STATUS_UNREAD;
 
    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "发送登录名")
    private String username;
 
    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "发送用户名")
    private String nickname;
 
    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "消息标题")
    private String title;
 
    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "消息内容")
    private String content;
 
    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "消息类型")
    private String type;
}