package com.ylx.message.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.ylx.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class MessageContent extends BaseEntity {

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("消息分类编码（对应sys_dict_data.dict_value）")
    private String categoryCode;

    @ApiModelProperty("触发事件标识")
    private String triggerEvent;

    @ApiModelProperty("消息模板（支持{变量}替换）")
    private String contentTemplate;

    @ApiModelProperty("跳转路由/链接")
    private String jumpPage;

    @ApiModelProperty("标题")
    private String title;

    @TableLogic
    @ApiModelProperty("是否删除 0=否，1=是")
    private Integer isDelete;
}
