-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorder.proto
46 lines (36 loc) · 1.08 KB
/
order.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
syntax = "proto3";
option csharp_namespace = "GsServer.Protobufs";
import "gs_protobufs/protos/custom_types/void_value.proto";
import "google/protobuf/wrappers.proto";
package protos.order;
service OrderService {
rpc GetPaginatedAsync(GetPaginatedOrdersRequest) returns (GetPaginatedOrdersResponse);
rpc GetByIdAsync(GetOrderByIdRequest) returns (GetOrderByIdResponse);
rpc PostAsync(CreateOrderRequest) returns (custom_types.void.VoidValue);
rpc PutAsync(UpdateOrderRequest) returns (custom_types.void.VoidValue);
rpc DeleteAsync(DeleteOrderRequest) returns (custom_types.void.VoidValue);
}
message GetPaginatedOrdersRequest {
google.protobuf.StringValue cursor = 1;
}
message GetPaginatedOrdersResponse {
repeated GetOrderByIdResponse orders = 1;
google.protobuf.StringValue next_cursor = 2;
}
message GetOrderByIdRequest {
string order_id = 1;
}
message GetOrderByIdResponse {
string order_id = 1;
// TODO
}
message CreateOrderRequest {
// TODO
}
message UpdateOrderRequest {
string order_id = 1;
// TODO
}
message DeleteOrderRequest {
string order_id = 1;
}