一些aws上面的服务 静态资源上传, 邮件发送等等
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.

27 lines
426 B

5 years ago
  1. # aws 服务
  2. 收集一些aws的服务实现
  3. aws-sdk: https://github.com/aws/aws-sdk-go
  4. ### 文件上传
  5. ```
  6. url: /upload
  7. method: post
  8. name: file
  9. success:
  10. {
  11. "code": 0,
  12. "data": "https://oceanapps.s3.ap-east-1.amazonaws.com/upload/15840111554a47a0db6e60853dedfcfdf08a5ca249..png",
  13. "msg": "文件上传成功"
  14. }
  15. failed:
  16. {
  17. "code": 504,
  18. "data": "http: no such file",
  19. "msg": "文件上传失败"
  20. }
  21. ```