package cn.axzo.msg.center.notices.service.request;

import cn.axzo.msg.center.api.request.SendMessageRequestDto;
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 SendCodeV2Req extends MockReq {

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

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

  /**
   * 扩展参数, 和{@link SendMessageRequestDto#getExpansion()}里面的作用一样
   */
  private String expansion;
}
