package cn.axzo.msg.center.domain.entity;



import cn.axzo.msg.center.domain.persistence.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 动态消息(MsgDynamic)实体类
 *
 * @author 
 * @since 2021-03-11 15:59:50
 */
@TableName("msg_dynamic")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MsgDynamic extends BaseEntity<MsgDynamic> {


  private Long id;
  /**
   * 标题
   */
  private String title;
  /**
   * 简介
   */
  private String summary;
  /**
   * 列表描述
   */
  private String description;
  /**
   * 动态类型：具体值见DynamicCategoryEnum
   */
  private Integer category;
  /**
   * 接收者id
   */
  private Long receiverId;
  /**
   * 接收者类型：1班组长，2工人
   */
  private Integer receiverType;
  /**
   * 路由类型：1uniapp，2app
   */
  private Integer routerType;
  /**
   * 路由参数
   */
  private String params;
  /**
   * 状态：0未读，1已读
   */
  private Integer status;

  private Date createAt;

  private Date updateAt;



  /**
   * 获取主键值
   *
   * @return 主键值
   */
  @Override
  protected Serializable pkVal() {
    return this.id;
  }

}
