|
12345678910111213141516171819202122232425262728 |
- syntax = "proto3";
- package pb;
- option go_package = "egg-im/pkg/pb/";
-
- import "common.ext.proto";
- import "business.ext.proto";
-
- service BusinessInt {
- // 权限校验
- rpc Auth (AuthReq) returns (Empty);
- // 批量获取用户信息
- rpc GetUser (GetUserReq) returns (GetUserResp);
- // 批量获取用户信息
- rpc GetUsers (GetUsersReq) returns (GetUsersResp);
- }
-
- message AuthReq {
- int64 user_id = 1;
- int64 device_id = 2;
- string token = 3;
- }
-
- message GetUsersReq {
- map<int64, int32> user_ids = 1; // 用户id
- }
- message GetUsersResp {
- map<int64, User> users = 1; // 用户信息
- }
|