mirror of
https://github.com/cubixle/tuugen.git
synced 2026-04-24 21:24:42 +01:00
20 lines
318 B
Protocol Buffer
20 lines
318 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package service;
|
|
|
|
option go_package = 'internal/pb/service';
|
|
|
|
service Service {
|
|
rpc CreateUser(User) returns (User) {};
|
|
rpc GetUser(IdRequest) returns (User) {};
|
|
}
|
|
|
|
message User {
|
|
string name = 1;
|
|
string team_id = 2;
|
|
string email = 3;
|
|
}
|
|
|
|
message IdRequest {
|
|
string id = 1;
|
|
} |