|
12345678910111213141516171819202122232425262728293031323334 |
- syntax = "proto3";
- package pb;
- option go_package = "gim/pkg/pb/";
-
- import "common.ext.proto";
- import "business.ext.proto";
-
- service BusinessInt {
- // 站长权限校验
- rpc MasterAuth (MasterAuthReq) returns (Empty);
- // 权限校验
- rpc Auth (AuthReq) returns (Empty);
- // 批量获取用户信息
- rpc GetUser (GetUserReq) returns (GetUserResp);
- // 批量获取用户信息
- rpc GetUsers (GetUsersReq) returns (GetUsersResp);
- }
-
- message MasterAuthReq {
- string master_id = 1;
- }
-
- 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; // 用户信息
- }
|