| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- syntax = "proto3";
- package api.chat;
- //import "google/api/annotations.proto";
- //import "google/protobuf/struct.proto";
- //import "google/protobuf/empty.proto";
- import "api/common/common.proto";
- option go_package = "git.ikuban.com/server/pw-protobuf/api/chat;chat";
- option java_multiple_files = true;
- option java_package = "api.chat";
- service Chat {
- // 检查用户是否与接待员聊天
- rpc CheckUserPartnerIsRelationship (common.UserAndPartnerIdParam) returns (CheckUserPartnerIsRelationshipReply);
- // 创建聊天房间
- rpc CreateChatRoom (CreateChatRoomParam) returns (RoomReply);
- // 查询在线人的列表
- rpc FindOnlinePersonList (common.ListPageAndPersonRequest) returns (common.OnlinePersonListReply);
- rpc Receive (ReceiveRequest) returns (ReceiveReply){};
- }
- message CreateChatRoomParam {
- string personId1 = 1;
- string personIdentifyID1 = 2; // 身份ID
- string personType1 = 3; // 类型
- string personId2 = 4;
- string personIdentifyID2 = 5; // 身份ID
- string personType2 = 6; // 类型
- }
- message ReceiveRequest{
- string method = 1;
- bytes data = 2;
- string id = 3;
- string websocketTag = 4;
- string personType = 5;
- string personId = 6;
- }
- message ReceiveReply{
- }
- message CheckUserPartnerIsRelationshipReply{
- bool isBuildRelationship = 1;
- int64 roomId = 2;
- }
- message RoomReply{
- int64 roomId = 1;
- }
|