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

137 lines
2.8 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 {
2 years ago
string putID = 1;
string name = 2;
int64 size = 3;
string hash = 4;
string contentType = 5;
int64 fragmentSize = 6;
int64 validTime = 7; // 文件有效时间
2 years ago
}
message ApplyPutResp {
string url = 1;
string putID = 2;
int64 fragmentSize = 3;
2 years ago
int64 validTime = 4;// 上传地址的有效时间
2 years ago
string putURLsHash = 5;
repeated string putURLs = 6;
2 years ago
}
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;
2 years ago
string url = 3;
2 years ago
}
message GetPutResp {
string name = 1;
int64 size = 2;
string hash = 3;
int64 fragmentSize = 4;
2 years ago
string contentType = 5;
2 years ago
int64 validTime = 6; // 上传地址的有效时间
2 years ago
// repeated GetPutFragment fragments = 7;
// string putURLsHash = 8;
// string putID = 2;
// int64 fragmentSize = 3;
// int64 validTime = 4;// 上传地址的有效时间
2 years ago
string putURLsHash = 7;
repeated GetPutFragment fragments = 8;
2 years ago
// repeated string putURLs = 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
}