|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- syntax = "proto3";
- package pb;
- option go_package = "egg-im/pkg/pb/";
-
- import "common.ext.proto";
- import "connect.ext.proto";
- import "logic.ext.proto";
-
- service LogicInt {
-
- rpc ConnSignIn (ConnSignInReq) returns (Empty);
-
- rpc Sync (SyncReq) returns (SyncResp);
-
- rpc MessageACK (MessageACKReq) returns (Empty);
-
- rpc Offline (OfflineReq) returns (Empty);
-
- rpc SubscribeRoom(SubscribeRoomReq)returns(Empty);
-
- rpc SendMessage (SendMessageReq) returns (SendMessageResp);
-
- rpc PushRoom(PushRoomReq)returns(Empty);
-
- rpc PushAll(PushAllReq)returns(Empty);
-
-
- rpc GetDevice (GetDeviceReq) returns (GetDeviceResp);
-
- rpc ServerStop (ServerStopReq) returns (Empty);
- }
-
- message ConnSignInReq {
- int64 device_id = 1;
- int64 user_id = 2;
- string token = 3;
- string conn_addr = 4;
- string client_addr = 5;
- }
-
- message SyncReq {
- int64 user_id = 1;
- int64 device_id = 2;
- int64 seq = 3;
- }
- message SyncResp {
- repeated Message messages = 1;
- bool has_more = 2;
- }
-
- message MessageACKReq {
- int64 user_id = 1;
- int64 device_id = 2;
- int64 device_ack = 3;
- int64 receive_time = 4;
- }
-
- message OfflineReq {
- int64 user_id = 1;
- int64 device_id = 2;
- string client_addr = 3;
- }
-
- message SubscribeRoomReq{
- int64 user_id = 1;
- int64 device_id = 2;
- int64 room_id = 3;
- int64 seq = 4;
- string conn_addr = 5;
- }
-
- message PushAllReq{
- MessageType message_type = 1;
- bytes message_content = 2;
- int64 send_time = 3;
- }
-
- message GetDeviceReq {
- int64 device_id = 1;
- }
- message GetDeviceResp {
- Device device = 1;
- }
-
- message Device {
- int64 device_id = 1;
- int64 user_id = 2;
- int32 type = 3;
- string brand = 4;
- string model = 5;
- string system_version = 6;
- string sdk_version = 7;
- int32 status = 8;
- string conn_addr = 9;
- string client_addr = 10;
- int64 create_time = 11;
- int64 update_time = 12;
- }
-
- message ServerStopReq {
- string conn_addr = 1;
- }
|