Created
March 28, 2020 01:21
-
-
Save de314/8e37975c925efe6352fa7aa0f82a958b to your computer and use it in GitHub Desktop.
Remote Proto Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
service NoteService { | |
rpc List (Empty) returns (NoteList) {} | |
rpc Insert (Note) returns (Note) {} | |
rpc Delete (NoteRequestId) returns (Note) {} | |
} | |
message Empty {} | |
message NoteRequestId { | |
string id = 1; | |
} | |
message Note { | |
string id = 1; | |
string title = 2; | |
string content = 3; | |
} | |
message NoteList { | |
repeated Note notes = 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment