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

126 lines
2.5 KiB

2 years ago
syntax = "proto3";
2 years ago
package OpenIMServer.third;
2 years ago
import "sdkws/sdkws.proto";
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/third";
2 years ago
2 years ago
message ApplyPutReq {
string name = 1;
int64 size = 2;
string hash = 3;
2 years ago
string contentType = 4;
int64 fragmentSize = 5;
2 years ago
int64 validTime = 6; // 文件有效时间
2 years ago
}
message ApplyPutResp {
string url = 1;
string putID = 2;
int64 fragmentSize = 3;
2 years ago
int64 validTime = 4;// 上传地址的有效时间
2 years ago
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 GetUrlReq {
2 years ago
string name = 1; // 文件名
int64 expires = 2; // url有效时间
2 years ago
bool attachment = 3;// 是否是附件
2 years ago
}
message GetUrlResp {
string url = 1;
int64 size = 2;
string hash = 3;
}
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;
2 years ago
string contentType = 5;
int64 validTime = 6;
repeated GetPutFragment fragments = 7;
2 years ago
}
2 years ago
message GetHashInfoReq {
string hash = 1;
}
message GetHashInfoResp {
string hash = 1;
int64 size = 2;
}
2 years ago
message GetSignalInvitationInfoReq {
2 years ago
string clientMsgID = 1;
2 years ago
}
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;
2 years ago
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 GetUrl(GetUrlReq) returns(GetUrlResp);
2 years ago
rpc GetHashInfo(GetHashInfoReq) returns(GetHashInfoResp);
2 years ago
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
}