package com.red.circle.mq.business.model.event.dynamic;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.common.business.core.enums.DynamicEventTypeEnum;
import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 动态事件.
 *
 * @author pengshigang on 2022/4/11
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class DynamicEvent implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 动态id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long dynamicContentId;

  /**
   * 用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 被关注用户id
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long followUserId;

  /**
   * 评论id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long commentId;

  /**
   * 时间
   */
  private Timestamp timestamp;

  /**
   * 业务类型
   */
  private DynamicEventTypeEnum type;

  /**
   * 区域.
   */
  private String region;
}
