add minio

This commit is contained in:
wangchuxiao
2022-02-19 18:48:15 +08:00
parent 6e9b9341d4
commit a2cd7c8007
7 changed files with 117 additions and 19 deletions
+6 -5
View File
@@ -1,12 +1,13 @@
package base_info
type MinioStorageCredentialReq struct {
Action string `form:"Action";binding:"required"`
DurationSeconds int `form:"DurationSeconds"`
Version string `form:"Version"`
Policy string
OperationID string `json:"operationID"`
}
type MiniostorageCredentialResp struct {
SecretAccessKey string `json:"secretAccessKey"`
AccessKeyID string `json:"accessKeyID"`
SessionToken string `json:"sessionToken"`
BucketName string `json:"bucketName"`
StsEndpointURL string `json:"stsEndpointURL"`
}
+7
View File
@@ -36,6 +36,13 @@ type config struct {
SecretID string `yaml:"secretID"`
SecretKey string `yaml:"secretKey"`
}
Minio struct {
Bucket string `yaml:"bucket"`
Location string `yaml:"location"`
Endpoint string `yaml:"endpoint"`
AccessKeyID string `yaml:"accessKeyID"`
SecretAccessKey string `yaml:"secretAccessKey"`
} `yaml:"minio"`
}
Mysql struct {
+3
View File
@@ -121,6 +121,9 @@ const (
//UserJoinGroupSource
JoinByAdmin = 1
//Minio
MinioDurationTimes = 3600
)
var ContentType2PushContent = map[int64]string{