feat: temp upload

This commit is contained in:
fallen-angle
2022-04-13 19:48:10 +08:00
parent 80ca1cd46e
commit fc347a4140
15 changed files with 155 additions and 8 deletions

20
initialize/bos.go Normal file
View File

@@ -0,0 +1,20 @@
package initialize
import (
"github.com/baidubce/bce-sdk-go/services/bos"
"nCovTrack-Backend/global"
)
func initBos() {
clientConfig := bos.BosClientConfiguration{
global.ServerSettings.Bos.AccessKey,
global.ServerSettings.Bos.SecretKey,
global.ServerSettings.Bos.Domain,
false,
}
bosClient, err := bos.NewClientWithConfig(&clientConfig)
if err != nil {
panic(err)
}
global.BosClient = bosClient
}