Files
open-im-server/pkg/base_info/minio_api_struct.go
T

26 lines
739 B
Go
Raw Normal View History

2022-02-18 17:06:27 +08:00
package base_info
type MinioStorageCredentialReq struct {
2022-02-19 18:48:15 +08:00
OperationID string `json:"operationID"`
2022-02-18 17:06:27 +08:00
}
type MiniostorageCredentialResp struct {
2022-02-19 18:48:15 +08:00
SecretAccessKey string `json:"secretAccessKey"`
2022-03-23 15:44:34 +08:00
AccessKeyID string `json:"accessKeyID"`
SessionToken string `json:"sessionToken"`
BucketName string `json:"bucketName"`
StsEndpointURL string `json:"stsEndpointURL"`
}
type MinioUploadFileReq struct {
OperationID string `json:"operationID"`
FileType int `json:"fileType"`
}
type MinioUploadFileResp struct {
URL string `json:"URL"`
NewName string `json:"newName"`
SnapshotURL string `json:"snapshotURL" binding:"omitempty"`
SnapshotNewName string `json:"snapshotName" binding:"omitempty"`
2022-02-18 17:06:27 +08:00
}