feat✨ 结构统一调整

This commit is contained in:
wenjianzhang committed 2021-05-20 22:59:09 +08:00
1 parent 6b1c3d9226
commit 44545f3d5b
49 files changed
+330 -545

No files matched your search

+6 -5
View File
@@ -14,10 +14,11 @@ type ALiYunOSS struct {
}
func (e *ALiYunOSS) Setup() error {
e.AccessKeyId = "LTAI4G3S4hDLxg6Zmu4UTBwG"
e.AccessKeySecret = "C8sj70orL03bwk6wNXX0jbNjAbLCb8"
e.Endpoint = "oss-cn-shanghai.aliyuncs.com"
e.BucketName = "youshikeji"
// TODO: 如果需要使用阿里云OSS请在此处填写对应信息
e.AccessKeyId = ""
e.AccessKeySecret = ""
e.Endpoint = ""
e.BucketName = ""
client, err := oss.New(e.Endpoint, e.AccessKeyId, e.AccessKeySecret)
if err != nil {
@@ -51,4 +52,4 @@ func (e *ALiYunOSS) UpLoad(yourObjectName string, localFile string) error {
return err
}
return nil
}
}