mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 16:08:05 +00:00
23 lines
329 B
Protocol Buffer
23 lines
329 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package acme.notes.v1;
|
|
|
|
message Note {
|
|
int64 id = 1;
|
|
string title = 2;
|
|
string body = 3;
|
|
}
|
|
|
|
message ListNotesRequest {
|
|
string query = 1;
|
|
int32 page_size = 2;
|
|
}
|
|
|
|
message ListNotesResponse {
|
|
repeated Note notes = 1;
|
|
}
|
|
|
|
service Notes {
|
|
rpc ListNotes(ListNotesRequest) returns (ListNotesResponse);
|
|
}
|