OSSConfig.java 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package com.xjrsoft.config;
  2. import com.xjrsoft.common.enums.CloudType;
  3. import lombok.Data;
  4. import org.springframework.boot.context.properties.ConfigurationProperties;
  5. import org.springframework.stereotype.Component;
  6. /**
  7. * @Author: tzx
  8. * @Date: 2022/3/8 10:29
  9. */
  10. @Data
  11. @Component
  12. @ConfigurationProperties("xjrsoft.oss")
  13. public class OSSConfig {
  14. /**
  15. * 云服务类别
  16. */
  17. private CloudType cloudType;
  18. /**
  19. * 是否开启
  20. */
  21. private Boolean enabled;
  22. /**
  23. * 域名
  24. */
  25. private String endpoint;
  26. /**
  27. * 预览域名
  28. */
  29. private String endpointPreview;
  30. /**
  31. * 前缀
  32. */
  33. private String prefix;
  34. /**
  35. * accessKey 腾讯云 这个代表 secretId
  36. */
  37. private String accessKey;
  38. /**
  39. * 密钥
  40. */
  41. private String secretKey;
  42. /**
  43. * bucket
  44. */
  45. private String bucketName;
  46. /**
  47. * 区域 目前只有腾讯云有需要配置
  48. */
  49. private String region;
  50. /**
  51. * appId 腾讯云需要配置
  52. */
  53. private Long appId;
  54. }