Last active
May 1, 2024 12:49
-
-
Save ruan65/f67888eb4c371b9f99b159037345c2ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax="proto3"; | |
message Student { | |
int32 id = 1; | |
string name = 2; | |
} | |
message Question { | |
int32 id = 1; | |
string text = 2; | |
} | |
message Answer { | |
int32 id = 1; | |
Student student = 2; | |
Question question = 3; | |
string text = 4; | |
} | |
message Evaluation { | |
int32 id = 1; | |
int32 answerId = 2; | |
int32 mark = 3; | |
} | |
service Umka { | |
rpc getQuestion(Student) returns(Question) {} | |
rpc sendAnswer(Answer) returns(Evaluation) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment