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.

business.int.proto 597 B

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