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

26 lines
719 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 {
2022-03-23 16:13:18 +08:00
OperationID string `form:"operationID"`
FileType int `form:"fileType"`
2022-03-23 15:44:34 +08:00
}
type MinioUploadFileResp struct {
URL string `json:"URL"`
NewName string `json:"newName"`
2022-03-23 17:15:46 +08:00
SnapshotURL string `json:"snapshotURL,omitempty"`
SnapshotNewName string `json:"snapshotName,omitempty"`
2022-02-18 17:06:27 +08:00
}