蛋蛋星球 后台端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
640 B

  1. package enum
  2. type AliyunOss int32
  3. const (
  4. AliyunOssEndpoint = 1
  5. AliyunOssBucketName = 2
  6. AliyunOssBucketScheme = 3
  7. AliyunOssAccessKeyID = 4
  8. AliyunOssAccessKeySecret = 5
  9. AliyunOssDomain = 6
  10. )
  11. func (gt AliyunOss) String() string {
  12. switch gt {
  13. case AliyunOssEndpoint:
  14. return "oss_endpoint"
  15. case AliyunOssBucketName:
  16. return "oss_bucket_name"
  17. case AliyunOssBucketScheme:
  18. return "oss_bucket_scheme"
  19. case AliyunOssAccessKeyID:
  20. return "oss_access_key_id"
  21. case AliyunOssAccessKeySecret:
  22. return "oss_access_key_secret"
  23. case AliyunOssDomain:
  24. return "oss_domain"
  25. default:
  26. return "未知"
  27. }
  28. }