package cn.axzo.msg.center.api.request;

import com.alibaba.fastjson.JSON;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.HashMap;

/**
 * @author zhangPeng
 * @description
 * @date 2021/8/18 15:55
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MnsSendCodeV2Req extends ExpansionInfo {

  /** 手机号 */
  @NotBlank(message = "手机号不能为空")
  private String phone;
  /**
   * 验证码
   */
  @NotNull(message = "验证码不能为空")
  private Integer code;


  private HashMap<String, Object> param;
  @NotBlank(message = "appCode参数不参为空")
  private String appCode;
  @NotBlank(message = "templateNo参数不参为空")
  private String templateNo;

  @Override
  public String toString() {
    return JSON.toJSONString(this);
  }
}
