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

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

/**
 * 动态-点赞.
 *
 * @author pengshigang
 * @since 2022-4-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DynamicLikeCmd extends AppExtCommand {

  /**
   * 动态内容ID.
   *
   * @eo.required
   */
  @NotNull
  private Long dynamicId;

  /**
   * 被点赞的评论ID.
   */
  private Long commentId;

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

  /**
   * 被点赞的评论用户ID.
   */
  private Long toUserId;

  /**
   * 点赞(true 点赞， false取消点赞).
   *
   * @eo.required
   */
  @NotNull
  private Boolean like;

}
