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 UserMessage extends BaseEntity {

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

    @ApiModelProperty("接收用户ID")
    private Long userId;

    @ApiModelProperty("关联message_content.id")
    private Long messageContentId;

    @ApiModelProperty("0-未读(显示小红点) 1-已读")
    private Integer isRead;

    @ApiModelProperty("变量替换后的最终消息内容")
    private String personalizedContent;

    @ApiModelProperty("变量替换后的跳转路由/链接")
    private String personalizedJumpPage;

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

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

}
