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

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import com.red.circle.other.inner.enums.material.PropsCommodityType;
import com.red.circle.other.inner.enums.material.PropsCurrencyType;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 道具列表获取, 贵族.
 *
 * @author pengliang on 2021/1/22
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PropsNobleVipQryCmd extends AppExtCommand {

  /**
   * 货币类型.
   *
   * @eo.required
   */
  @NotNull(message = "currencyType required.")
  private PropsCurrencyType currencyType;

  /**
   * 缓存key.
   */
  public String controllerCacheKey() {
    return requireReqSysOrigin() + "_" + PropsCommodityType.NOBLE_VIP + "_" + currencyType;
  }

}
