package cn.bunny.entity.system.user;

import cn.bunny.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 用户消息
 * </p>
 *
 * @author Bunny
 * @since 2024-05-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user_message")
@ApiModel(value = "UserMessage对象", description = "用户消息")
public class UserMessage extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty("文章ID")
    private String articleId;

    @ApiModelProperty("文章标题")
    private String articleTitle;

    @ApiModelProperty("评论ID")
    private Integer commentId;

    @ApiModelProperty("发送人用户ID")
    private Long sendUserId;

    @ApiModelProperty("发送人昵称")
    private String sendNickName;

    @ApiModelProperty("sys:系统消息	reply:评论 	likePost:文章点赞 	likeComment:评论点赞 	attachment:附件下载")
    private String messageType;

    @ApiModelProperty("消息内容")
    private String messageContent;

    @ApiModelProperty("1:未读 2:已读")
    private Byte status;
}
