golang 的 rabbitmq 消费项目
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.

im.business.int.proto 725 B

1 vuosi sitten
12345678910111213141516171819202122232425262728293031323334
  1. syntax = "proto3";
  2. package pb;
  3. option go_package = "gim/pkg/pb/";
  4. import "im.common.ext.proto";
  5. import "im.business.ext.proto";
  6. service BusinessInt {
  7. // 站长权限校验
  8. rpc MasterAuth (MasterAuthReq) returns (Empty);
  9. // 权限校验
  10. rpc Auth (AuthReq) returns (Empty);
  11. // 批量获取用户信息
  12. rpc GetUser (GetUserReq) returns (GetUserResp);
  13. // 批量获取用户信息
  14. rpc GetUsers (GetUsersReq) returns (GetUsersResp);
  15. }
  16. message MasterAuthReq {
  17. string master_id = 1;
  18. }
  19. message AuthReq {
  20. int64 user_id = 1;
  21. int64 device_id = 2;
  22. string token = 3;
  23. }
  24. message GetUsersReq {
  25. map<int64, int32> user_ids = 1; // 用户id
  26. }
  27. message GetUsersResp {
  28. map<int64, User> users = 1; // 用户信息
  29. }