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 user_ids = 1; // 用户id } message GetUsersResp { map users = 1; // 用户信息 }