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

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 动态-内容创建.
 *
 * @author pengshigang
 * @since 2022-4-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DynamicCommentCmd extends AppExtCommand {

  /**
   * 文字内容.
   *
   * @eo.required
   */
  @NotBlank
  private String content;

  /**
   * 动态ID.
   *
   * @eo.required
   */
  @NotNull
  private Long id;

  /**
   * 被评论用户id，不传则为针对动态的评价.
   */
  private Long toUserId;

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

}
