testuser.proto 260 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
syntax = "proto3";


option go_package = "./proto/api;api";

message UserInfoReq {
  string id = 1;
}

message UserInfoResp {
  int64 id = 1;
  int32 age = 2;
  string name = 3;
}

service TestUser {
  rpc GetUserInfo(UserInfoReq) returns (UserInfoResp){};
}