SmsProperties.java 715 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.usky.config.sms;
  2. import lombok.Data;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.stereotype.Component;
  5. @Data
  6. @ConfigurationProperties(prefix = "sms")
  7. public class SmsProperties {
  8. /**
  9. * 账号
  10. */
  11. String accessKeyID;
  12. /**
  13. * 密钥
  14. */
  15. String accessKeySecret;
  16. /**
  17. * 短信签名
  18. */
  19. String signName;
  20. /**
  21. * 短信模板
  22. */
  23. String verifyCodeTemplate;
  24. /**
  25. * 发送短信请求的域名
  26. */
  27. String domain;
  28. /**
  29. * API版本
  30. */
  31. String version;
  32. /**
  33. * API类型
  34. */
  35. String action;
  36. /**
  37. * 区域
  38. */
  39. String regionID;
  40. }