You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
example-proto/users.proto

25 lines
364 B

syntax = "proto3";
package user;
message User {
uint64 id = 1;
string created_at = 2;
string updated_at = 3;
string name = 4;
string avatar = 5;
}
message UserRequest {
string token = 1;
}
message UserResponse {
int32 code = 1;
string message = 2;
User data = 3;
}
service UserService {
rpc GetUser(UserRequest) returns (UserResponse) {}
}