Files
open-im-server/pkg/proto/third/third.proto
T

113 lines
2.2 KiB
Protocol Buffer
Raw Normal View History

2023-02-16 16:19:53 +08:00
syntax = "proto3";
2023-03-17 17:26:58 +08:00
package OpenIMServer.third;
2023-03-16 10:46:06 +08:00
import "sdkws/sdkws.proto";
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/third";
2023-02-16 16:19:53 +08:00
2023-03-03 17:20:36 +08:00
message ApplyPutReq {
string name = 1;
int64 size = 2;
string hash = 3;
2023-03-29 10:15:21 +08:00
string contentType = 4;
int64 fragmentSize = 5;
int64 validTime = 6;
2023-03-03 17:20:36 +08:00
}
message ApplyPutResp {
string url = 1;
string putID = 2;
int64 fragmentSize = 3;
repeated string PutURLs = 5;
}
2023-02-16 16:19:53 +08:00
2023-03-03 17:20:36 +08:00
message ConfirmPutReq {
string putID = 1;
2023-02-16 16:19:53 +08:00
}
2023-03-03 17:20:36 +08:00
message ConfirmPutResp {
string url = 1;
2023-02-16 16:19:53 +08:00
}
2023-03-14 19:33:44 +08:00
message GetUrlReq {
2023-03-15 11:24:59 +08:00
string name = 1; // 文件名
int64 expires = 2; // url有效时间
2023-03-14 19:33:44 +08:00
}
message GetUrlResp {
string url = 1;
int64 size = 2;
string hash = 3;
}
2023-03-03 17:20:36 +08:00
message GetPutReq {
string putID = 1;
2023-02-16 16:19:53 +08:00
}
2023-03-03 17:20:36 +08:00
message GetPutFragment{
int64 size = 1;
string hash = 2;
}
message GetPutResp {
string name = 1;
int64 size = 2;
string hash = 3;
int64 fragmentSize = 4;
2023-03-29 10:15:21 +08:00
string contentType = 5;
int64 validTime = 6;
repeated GetPutFragment fragments = 7;
2023-02-16 16:19:53 +08:00
}
2023-03-01 15:32:26 +08:00
message GetSignalInvitationInfoReq {
2023-02-28 16:05:33 +08:00
string ClientMsgID = 1;
}
2023-03-01 15:32:26 +08:00
message GetSignalInvitationInfoResp {
2023-03-03 17:20:36 +08:00
sdkws.InvitationInfo invitationInfo = 1;
sdkws.OfflinePushInfo offlinePushInfo = 2;
2023-02-28 17:13:56 +08:00
}
2023-03-01 15:32:26 +08:00
message GetSignalInvitationInfoStartAppReq {
2023-02-28 17:13:56 +08:00
string userID = 1;
}
2023-03-01 15:32:26 +08:00
message GetSignalInvitationInfoStartAppResp {
2023-03-03 17:20:36 +08:00
sdkws.InvitationInfo invitationInfo = 1;
sdkws.OfflinePushInfo offlinePushInfo = 2;
2023-02-28 17:13:56 +08:00
}
message FcmUpdateTokenReq {
2023-03-03 17:20:36 +08:00
int32 PlatformID = 1;
string FcmToken = 2;
string account = 3;
int64 expireTime = 4;
2023-02-28 17:13:56 +08:00
}
message FcmUpdateTokenResp {
}
message SetAppBadgeReq {
2023-03-01 15:32:26 +08:00
string userID = 1;
2023-03-01 15:36:04 +08:00
int32 AppUnreadCount = 2;
2023-02-28 17:13:56 +08:00
}
message SetAppBadgeResp {
2023-02-28 16:05:33 +08:00
}
service third {
2023-03-03 17:20:36 +08:00
rpc ApplyPut(ApplyPutReq) returns(ApplyPutResp);
rpc GetPut(GetPutReq) returns(GetPutResp);
rpc ConfirmPut(ConfirmPutReq) returns(ConfirmPutResp);
2023-03-14 19:33:44 +08:00
rpc GetUrl(GetUrlReq) returns(GetUrlResp);
2023-03-03 17:20:36 +08:00
2023-03-01 15:32:26 +08:00
rpc GetSignalInvitationInfo(GetSignalInvitationInfoReq) returns(GetSignalInvitationInfoResp);
rpc GetSignalInvitationInfoStartApp(GetSignalInvitationInfoStartAppReq) returns(GetSignalInvitationInfoStartAppResp);
2023-02-28 17:13:56 +08:00
rpc FcmUpdateToken(FcmUpdateTokenReq) returns(FcmUpdateTokenResp);
rpc SetAppBadge(SetAppBadgeReq) returns(SetAppBadgeResp);
2023-02-16 16:19:53 +08:00
}