feat: temp upload
This commit is contained in:
20
initialize/bos.go
Normal file
20
initialize/bos.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user