package com.red.circle.other.inner.model.cmd.material;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.Command;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户礼物背包-限制.
 * </p>
 *
 * @author pengshigang
 * @since 2021-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class GiftBackpackLimitCmd extends Command {

  private static final long serialVersionUID = 1L;

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

  /**
   * 礼物id.
   */
  @NotNull(message = "giftId required.")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long giftId;

  /**
   * 数量.
   */
  @NotNull(message = "quantity required.")
  private Integer quantity;

  /**
   * 礼物类型.
   */
  @NotBlank(message = "giftTab required.")
  private String giftTab;

  /**
   * 限制内容.
   */
  @NotBlank(message = "limitContent required.")
  private String limitContent;

}
