| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- 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 CreateUserPartnerIsRelationship (common.UserAndPartnerIdParam) returns (CreateUserPartnerIsRelationshipReply);
- // 查询在线人的列表
- rpc FindOnlinePersonList (common.ListPageAndPersonRequest) returns (common.OnlinePersonListReply);
- rpc Receive (ReceiveRequest) returns (ReceiveReply){};
- }
- 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 CreateUserPartnerIsRelationshipReply{
- int64 roomId = 1;
- }
|