mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
22 lines
596 B
Go
22 lines
596 B
Go
package apistruct
|
|
|
|
type OSSCredentialReq struct {
|
|
OperationID string `json:"operationID"`
|
|
Filename string `json:"filename"`
|
|
FileType string `json:"file_type"`
|
|
}
|
|
|
|
type OSSCredentialRespData struct {
|
|
Endpoint string `json:"endpoint"`
|
|
AccessKeyId string `json:"access_key_id"`
|
|
AccessKeySecret string `json:"access_key_secret"`
|
|
Token string `json:"token"`
|
|
Bucket string `json:"bucket"`
|
|
FinalHost string `json:"final_host"`
|
|
}
|
|
|
|
type OSSCredentialResp struct {
|
|
OssData OSSCredentialRespData `json:"-"`
|
|
Data map[string]interface{} `json:"data"`
|
|
}
|