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

79 lines
1.7 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 third;
2 years ago
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;
}
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
message GetSignalInvitationInfoStartAppReq {
2 years ago
string userID = 1;
}
2 years ago
message GetSignalInvitationInfoStartAppResp {
2 years ago
sdkws.InvitationInfo invitationInfo = 1;
sdkws.OfflinePushInfo offlinePushInfo = 2;
}
message FcmUpdateTokenReq {
2 years ago
int32 PlatformID = 1;
2 years ago
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 ApplySpace(ApplySpaceReq) returns(ApplySpaceResp);
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
}