package com.red.circle.other.app.dto.clientobject.dynamic;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import java.io.Serial;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 动态-我的消息列表.
 * </p>
 *
 * @author pengshigang
 * @since 2022-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DynamicMessageListCO extends ClientObject {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 消息id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

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

  /**
   * 消息类型.
   */
  private String type;

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

  /**
   * 用户头像.
   */
  private String userAvatar;

  /**
   * 用户昵称.
   */
  private String userNickname;

  /**
   * 消息内容.
   */
  private String messageContent;

  /**
   * 动态内容.
   */
  private String dynamicContent;

  /**
   * 创建时间
   */
  private Timestamp createTime;

}
