Feat: client-upload file in oss

This commit is contained in:
HFO4
2020-01-16 13:36:13 +08:00
parent 0e62665d7f
commit dd198becce
13 changed files with 302 additions and 48 deletions

View File

@@ -18,8 +18,10 @@ type UploadPolicy struct {
// UploadCredential 返回给客户端的上传凭证
type UploadCredential struct {
Token string `json:"token"`
Policy string `json:"policy"`
Token string `json:"token"`
Policy string `json:"policy"`
Path string `json:"path"`
AccessKey string `json:"ak"`
}
// UploadSession 上传会话