xiangpei
2025-05-19 ad2fc69d87a8ba4d2f4b248e571b7207bdd9261e
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
package cn.lili.modules.message.entity.dos;
 
import cn.lili.mybatis.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
 
import javax.validation.constraints.NotEmpty;
 
/**
 * 通知类站内信模版对象
 *
 * @author Bulbasaur
 * @version v4.1
 * @since 2020/12/8 9:46
 */
@Data
@TableName("li_notice_message")
@ApiModel(value = "通知类消息模板")
public class NoticeMessage extends BaseEntity {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value = "站内信节点")
    @NotEmpty(message = "站内信节点不能为空")
    @Length(max = 50, message = "站内信节点名称太长,不能超过50")
    private String noticeNode;
 
    @ApiModelProperty(value = "站内信标题")
    @NotEmpty(message = "站内信标题不能为空")
    @Length(max = 50, message = "站内信标题名称太长,不能超过50")
    private String noticeTitle;
 
    @ApiModelProperty(value = "站内信内容")
    @NotEmpty(message = "站内信内容不能为空")
    @Length(max = 200, message = "站内信内容名称太长,不能超过200")
    private String noticeContent;
    /**
     * @see cn.lili.common.enums.SwitchEnum
     */
    @NotEmpty(message = "站内信状态不能为空")
    @ApiModelProperty(value = "站内信是否开启")
    private String noticeStatus;
    /**
     * @see cn.lili.modules.message.entity.enums.NoticeMessageParameterEnum
     */
    @ApiModelProperty(value = "消息变量")
    @NotEmpty(message = "站内信状态不能为空")
    private String variable;
 
 
}