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-4-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DynamicCommentListCO 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 userAvatar;

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

  /**
   * 用户性别:0 女，1 男.
   */
  private Integer userSex;

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

  /**
   * 被评价用户id
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long toUserId;

  /**
   * 被评价用户昵称.
   */
  private String toUserNickname;

  /**
   * 文字内容.
   */
  private String content;

  /**
   * 点赞数量.
   */
  private String likeStrQuantity;

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

  /**
   * 自己是否已点赞
   */
  private Boolean like;

  /**
   * 根评论id
   */
  private Long rootCommentId;

}
