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

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

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

/**
 * 发送消息请求
 * @Author: LiuYang
 * @Date: 2021/5/20 18:12
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Setter
@Getter
public class SendMessageRequestDto extends ExpansionInfo {

  /** 请求号 */
  private String requestNo;

  /** 应用接入码 */
  @NotBlank(message = "app code must not be null")
  private String appCode;

  /** 短信模板号 */
  @NotBlank(message = "template no must not be null")
  private String templateNo;

  /** 电话号码 */
  @NotBlank(message = "phone no must not be null")
  private String phoneNo;

  /** 短信模板变更 */
  @NotNull(message = "params must not be null")
  private Map<String, Object> params = new HashMap<>();

}