package com.storlead.message.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import com.storlead.framework.mybatis.entity.SysBaseField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 内部消息人员接收记录表
 * </p>
 *
 * @author chenkq
 * @since 2024-04-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("inside_message_send_log")
@ApiModel(value="InsideMessageSendLogEntity对象", description="内部消息人员接收记录表")
public class InsideMessageSendLogEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "消息id")
    private Long messageId;

    @ApiModelProperty(value = "接收人")
    private Long receiverUserId;

    @ApiModelProperty(value = "所属业务组")
    private Integer messageType;

    @ApiModelProperty(value = "细分消息类型(对应事件)")
    private Integer messageSubType;

    @ApiModelProperty(value = "未读:0 ,已读:1")
    private Integer isRead;

    @ApiModelProperty(value = "是否已读 0:未接收,1:已接收")
    private Integer status;

    @ApiModelProperty(value = "归属人员")
    private Long ownerBy;

    public InsideMessageSendLogEntity() {

    }

    public InsideMessageSendLogEntity(Long messageId,Long receiverUserId, Integer isRead, Integer status,Integer messageType) {
        this.messageId = messageId;
        this.receiverUserId =receiverUserId;
        this.isRead = isRead;
        this.status = status;
        this.messageType = messageType;

    }
}
