package com.red.circle.game.fruit.application.dto.cmd;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.core.dto.CommonCommand;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 领取任务奖励
 *
 * @author zongpubin 2023/12/12
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class GameFruitReceiveTaskAwardCmd extends CommonCommand {

  /**
   * 用户id
   */
  @JsonSerialize(using = ToStringSerializer.class)
  @NotNull(message = "userId {not.null}")
  private Long uid;


  /**
   * 任务奖项id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  @NotNull(message = "awardId {not.null}")
  private Long awardId;

}
