You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/proto/third/third.proto

100 lines
1.9 KiB

2 years ago
syntax = "proto3";
2 years ago
import "Open-IM-Server/pkg/proto/sdkws/ws.proto";
option go_package = "OpenIM/pkg/proto/third;third";
package OpenIMServer.third;
2 years ago
2 years ago
message ApplyPutReq {
string name = 1;
int64 size = 2;
string hash = 3;
int64 fragmentSize = 4;
int64 cleanTime = 5;
}
message ApplyPutResp {
string url = 1;
string putID = 2;
int64 fragmentSize = 3;
// int64 expirationTime = 4;
repeated string PutURLs = 5;
}
2 years ago
2 years ago
message ConfirmPutReq {
string putID = 1;
2 years ago
}
2 years ago
message ConfirmPutResp {
string url = 1;
2 years ago
}
2 years ago
message GetPutReq {
string putID = 1;
2 years ago
}
2 years ago
message GetPutFragment{
int64 size = 1;
string hash = 2;
}
message GetPutResp {
string name = 1;
int64 size = 2;
string hash = 3;
int64 fragmentSize = 4;
int64 cleanTime = 5;
repeated GetPutFragment fragments = 6;
2 years ago
}
2 years ago
message GetSignalInvitationInfoReq {
2 years ago
string ClientMsgID = 1;
}
2 years ago
message GetSignalInvitationInfoResp {
2 years ago
sdkws.InvitationInfo invitationInfo = 1;
sdkws.OfflinePushInfo offlinePushInfo = 2;
2 years ago
}
2 years ago
message GetSignalInvitationInfoStartAppReq {
2 years ago
string userID = 1;
}
2 years ago
message GetSignalInvitationInfoStartAppResp {
2 years ago
sdkws.InvitationInfo invitationInfo = 1;
sdkws.OfflinePushInfo offlinePushInfo = 2;
2 years ago
}
message FcmUpdateTokenReq {
2 years ago
int32 PlatformID = 1;
string FcmToken = 2;
string account = 3;
int64 expireTime = 4;
2 years ago
}
message FcmUpdateTokenResp {
}
message SetAppBadgeReq {
2 years ago
string userID = 1;
2 years ago
int32 AppUnreadCount = 2;
2 years ago
}
message SetAppBadgeResp {
2 years ago
}
service third {
2 years ago
rpc ApplyPut(ApplyPutReq) returns(ApplyPutResp);
rpc GetPut(GetPutReq) returns(GetPutResp);
rpc ConfirmPut(ConfirmPutReq) returns(ConfirmPutResp);
2 years ago
rpc GetSignalInvitationInfo(GetSignalInvitationInfoReq) returns(GetSignalInvitationInfoResp);
rpc GetSignalInvitationInfoStartApp(GetSignalInvitationInfoStartAppReq) returns(GetSignalInvitationInfoStartAppResp);
2 years ago
rpc FcmUpdateToken(FcmUpdateTokenReq) returns(FcmUpdateTokenResp);
rpc SetAppBadge(SetAppBadgeReq) returns(SetAppBadgeResp);
2 years ago
}