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
package cn.exrick.xboot.core.entity;
 
import cn.exrick.xboot.core.base.XbootBaseEntity;
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 org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
 
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
 
/**
 * @author Exrick
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "t_message")
@TableName("t_message")
@ApiModel(value = "消息")
public class Message extends XbootBaseEntity {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value = "标题")
    private String title;
 
    @ApiModelProperty(value = "内容")
    private String content;
 
    @ApiModelProperty(value = "消息类型")
    private String type;
 
    @ApiModelProperty(value = "新创建账号也推送")
    private Boolean createSend;
 
    @ApiModelProperty(value = "是否为模版消息")
    private Boolean isTemplate;
 
    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "纯文本内容")
    private String contentText;
 
    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "发送范围")
    private Integer range;
 
    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "发送指定用户id")
    private String[] userIds;
}