mgr.proto 611 Bytes
Newer Older
kzkzzzz's avatar
kzkzzzz committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
syntax = "proto3";

package mgr;

option go_package = "hilo/api/mgr;mgr";
import "mgr_base.proto";

// 定义服务
service Mgr {
  rpc CheckMgrImeiExist (CheckMgrImeiExistReq) returns (OkRep) {}
  rpc CheckMgrIpExist (CheckMgrIpExistReq) returns (OkRep) {}
  rpc GetMgrUserStatus (GetMgrUserStatusReq) returns (MMgrUserStatus) {}
  rpc IsAgent(IsAgentReq) returns (OkRep) {}
}

message CheckMgrImeiExistReq {
  string imei = 1;
}

message CheckMgrIpExistReq {
  string ip = 1;
}

message GetMgrUserStatusReq {
  int64 userId = 1;
}

message IsAgentReq {
  int64 userId = 1;
}

message OkRep {
  bool ok = 1;
}