object storage

This commit is contained in:
withchao
2023-02-16 16:19:53 +08:00
parent f517e63fca
commit 4683712e05
11 changed files with 742 additions and 53 deletions
+23
View File
@@ -99,3 +99,26 @@ type CallbackDeleteMessageReactionExtResp struct {
ResultReactionExtensionList []*msg.KeyValueResp `json:"resultReactionExtensionList"`
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
}
type CallbackGetMessageListReactionExtReq struct {
OperationID string `json:"operationID"`
CallbackCommand string `json:"callbackCommand"`
SourceID string `json:"sourceID"`
OpUserID string `json:"opUserID"`
SessionType int32 `json:"sessionType"`
TypeKeyList []string `json:"typeKeyList"`
MessageKeyList []*msg.GetMessageListReactionExtensionsReq_MessageReactionKey `json:"messageKeyList"`
}
type CallbackAddMessageReactionExtReq struct {
OperationID string `json:"operationID"`
CallbackCommand string `json:"callbackCommand"`
SourceID string `json:"sourceID"`
OpUserID string `json:"opUserID"`
SessionType int32 `json:"sessionType"`
ReactionExtensionList map[string]*sdkws.KeyValue `json:"reactionExtensionList"`
ClientMsgID string `json:"clientMsgID"`
IsReact bool `json:"isReact"`
IsExternalExtensions bool `json:"isExternalExtensions"`
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
}
+37
View File
@@ -0,0 +1,37 @@
syntax = "proto3";
option go_package = "Open_IM/pkg/proto/file;file";
package file;
message ApplySpaceReq {
string name = 1; // 文件名字
int64 size = 2; // 大小
string hash = 3; // md5
uint32 purpose = 4; // 用途
string contentType = 5;
}
message ApplySpaceResp {
string url = 1; // 不为空表示已存在
int64 size = 2; // 分片大小
repeated string put = 3;// put地址
string confirmID = 4; // 确认ID
}
message ConfirmSpaceReq {
string confirmID = 1; // 确认ID
}
message ConfirmSpaceResp {
string confirmID = 1;
}
service file {
rpc ApplySpaceReq(ApplySpaceReq) returns(ApplySpaceResp);
}
+1
View File
@@ -10,4 +10,5 @@ all_proto=(
relay/relay.proto
sdkws/ws.proto
conversation/conversation.proto
file/file.proto
)