lrj
昨天 dc643ba44fd2a426263015491268a0f0d6b4671d
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
package com.rongyichuang.message.entity;
 
import com.rongyichuang.common.entity.BaseEntity;
import jakarta.persistence.*;
 
/**
 * 消息实体类
 * 对应数据库表:t_msg
 */
@Entity
@Table(name = "t_msg")
public class Message extends BaseEntity {
 
    /**
     * 目标类型
     */
    @Column(name = "target_type", nullable = false)
    private Integer targetType;
 
    /**
     * 目标ID
     */
    @Column(name = "target_id", nullable = false)
    private Long targetId;
 
    /**
     * 学员ID
     */
    @Column(name = "player_id", nullable = false)
    private Long playerId;
 
    /**
     * 用户ID
     */
    @Column(name = "user_id", nullable = false)
    private Long userId;
 
    /**
     * 消息内容
     */
    @Column(name = "content", length = 200, nullable = false)
    private String content;
 
    /**
     * 模板内容
     */
    @Column(name = "template_content", length = 200)
    private String templateContent;
 
    /**
     * 微信消息发送成功标志
     */
    @Column(name = "wx_msg_success", nullable = false)
    private Boolean wxMsgSuccess;
 
    /**
     * 微信消息错误次数
     */
    @Column(name = "wx_msg_err_count", nullable = false)
    private Integer wxMsgErrCount = 0;
 
    /**
     * 微信消息最后错误信息
     */
    @Column(name = "wx_msg_last_err", length = 255)
    private String wxMsgLastErr;
 
    /**
     * 状态:0-暂时不发布,1-可以发布,2-已经发布
     */
    @Column(name = "state", nullable = false)
    private Integer state;
 
    // Getters and Setters
    public Integer getTargetType() {
        return targetType;
    }
 
    public void setTargetType(Integer targetType) {
        this.targetType = targetType;
    }
 
    public Long getTargetId() {
        return targetId;
    }
 
    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }
 
    public Long getPlayerId() {
        return playerId;
    }
 
    public void setPlayerId(Long playerId) {
        this.playerId = playerId;
    }
 
    public Long getUserId() {
        return userId;
    }
 
    public void setUserId(Long userId) {
        this.userId = userId;
    }
 
    public String getContent() {
        return content;
    }
 
    public void setContent(String content) {
        this.content = content;
    }
 
    public String getTemplateContent() {
        return templateContent;
    }
 
    public void setTemplateContent(String templateContent) {
        this.templateContent = templateContent;
    }
 
    public Boolean getWxMsgSuccess() {
        return wxMsgSuccess;
    }
 
    public void setWxMsgSuccess(Boolean wxMsgSuccess) {
        this.wxMsgSuccess = wxMsgSuccess;
    }
 
    public Integer getWxMsgErrCount() {
        return wxMsgErrCount;
    }
 
    public void setWxMsgErrCount(Integer wxMsgErrCount) {
        this.wxMsgErrCount = wxMsgErrCount;
    }
 
    public String getWxMsgLastErr() {
        return wxMsgLastErr;
    }
 
    public void setWxMsgLastErr(String wxMsgLastErr) {
        this.wxMsgLastErr = wxMsgLastErr;
    }
 
    public Integer getState() {
        return state;
    }
 
    public void setState(Integer state) {
        this.state = state;
    }
}