蛋蛋星球 后台端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

33 行
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. }