From 2d0cf43fc1cf2ea06af8b2b0f046cec28abcdbd9 Mon Sep 17 00:00:00 2001 From: Idhibhat Pankam Date: Sat, 20 Jul 2024 17:36:18 +0700 Subject: [PATCH] count proto --- rpkm67/backend/count/count.proto | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 rpkm67/backend/count/count.proto diff --git a/rpkm67/backend/count/count.proto b/rpkm67/backend/count/count.proto new file mode 100644 index 0000000..a984b87 --- /dev/null +++ b/rpkm67/backend/count/count.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +package rpkm67.backend.count.v1; + +option go_package = "rpkm67/backend/count/v1"; + +service CountService { + rpc FindAll(FindAllCountRequest) returns (FindAllCountResponse){} + rpc Create(CreateCountRequest) returns (CreateCountResponse) {} +} + +message Count{ + string name = 1; +} + +// FindAll +message FindAllCountRequest{ +} + +message FindAllCountResponse{ + repeated Count counts = 1; +} + +// Create +message CreateCountRequest{ + string name = 1; +} + +message CreateCountResponse{ + Count count = 1; +}