grpc 协议 proto 文件存放
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.

29 lines
528 B

  1. syntax = "proto3";
  2. package pb;
  3. option go_package = "gim/pkg/pb/";
  4. import "common.ext.proto";
  5. import "connect.ext.proto";
  6. service ConnectInt {
  7. // 消息投递
  8. rpc DeliverMessage (DeliverMessageReq) returns (Empty);
  9. }
  10. message DeliverMessageReq {
  11. int64 device_id = 1; // 设备id
  12. MessageSend message_send = 2; // 数据
  13. }
  14. // 房间推送
  15. message PushRoomMsg{
  16. int64 room_id = 1; // 设备id
  17. MessageSend message_send = 2; // 数据
  18. }
  19. // 房间推送
  20. message PushAllMsg{
  21. MessageSend message_send = 2; // 数据
  22. }