| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- syntax = "proto3";
- package api.websocket;
- //import "google/api/annotations.proto";
- //import "google/protobuf/struct.proto";
- import "google/protobuf/empty.proto";
- option go_package = "git.ikuban.com/server/pw-protobuf/api/websocket;websocket";
- option java_multiple_files = true;
- option java_package = "api.websocket";
- service Websocket {
- // 查询在线人数
- rpc FindOnlinePerson (google.protobuf.Empty) returns (FindOnlinePersonReply);
- // 发送消息
- rpc SendMsg (SendMsgRequest) returns (SendMsgReply){};
- }
- message SendMsgRequest{
- string id = 1;
- string method = 2;
- bytes data = 3;
- int32 code = 4;
- string message = 5;
- string websocketTag = 6;
- }
- message SendMsgReply{
- }
- message FindOnlinePersonReply{
- repeated OnlinePersonInfo list = 1;
- }
- message OnlinePersonInfo{
- string personType = 1;
- string personId = 2;
- }
|