ApiServer

This commit is contained in:
2026-06-01 00:28:15 +03:00
parent 01b935e112
commit 51a047602e
18 changed files with 507 additions and 39 deletions

View File

@@ -0,0 +1,43 @@
syntax = "proto3";
import "google/protobuf/wrappers.proto";
package sms.test;
option csharp_namespace = "Sms.Test";
message MenuItem {
string id = 1;
string article = 2;
string name = 3;
double price = 4;
bool is_weighted = 5;
string full_path = 6;
repeated string barcodes = 7;
}
message OrderItem {
string id = 1;
double quantity = 2;
}
message Order {
string id = 1;
repeated OrderItem order_items = 2;
}
message GetMenuResponse {
bool success = 1;
string error_message = 2;
repeated MenuItem menu_items = 3;
}
message SendOrderResponse {
bool success = 1;
string error_message = 2;
}
service SmsTestService {
rpc GetMenu(google.protobuf.BoolValue) returns (GetMenuResponse);
rpc SendOrder(Order) returns (SendOrderResponse);
}