Skip to content

Commit 782cfa2

Browse files
committed
Add Result
1 parent fb4e1c4 commit 782cfa2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
syntax = "proto3";
2+
3+
package kantacky.foundation.v1;
4+
5+
message Result {
6+
ResultStatus status = 1;
7+
8+
// Used to provide additional information about the result.
9+
// Should be set when the status is not RESULT_STATUS_SUCCESS.
10+
optional string message = 2;
11+
}
12+
13+
enum ResultStatus {
14+
RESULT_STATUS_UNSPECIFIED = 0;
15+
RESULT_STATUS_SUCCESS = 1;
16+
RESULT_STATUS_FAILURE = 2;
17+
}

0 commit comments

Comments
 (0)