Skip to content

Commit

Permalink
Merge branch 'main' into dev-Aiden
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiden2014 committed Aug 17, 2024
2 parents 936f345 + b1f33d6 commit 2a7c862
Show file tree
Hide file tree
Showing 19 changed files with 1,694 additions and 558 deletions.
823 changes: 511 additions & 312 deletions api/sastoj/user/contest/service/v1/contest.pb.go

Large diffs are not rendered by default.

218 changes: 218 additions & 0 deletions api/sastoj/user/contest/service/v1/contest.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions api/sastoj/user/contest/service/v1/contest.proto
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ service Contest {
get: "/user/contests/{contest_id}/problems/{problem_id}/submissions"
};
};
rpc GetSelfTest (GetSelfTestRequest) returns (GetSelfTestReply) {
option (google.api.http) = {
get: "/user/contests/{contest_id}/self-tests/{self_test_id}"
};
};
rpc GetCases (GetCasesRequest) returns (GetCasesReply) {
option (google.api.http) = {
get: "/user/contests/{contest_id}/submissions/{submission_id}/cases"
Expand Down Expand Up @@ -173,6 +178,19 @@ message GetSubmissionsReply {
repeated Submission submissions = 1;
}

message GetSelfTestRequest {
int64 contest_id = 1;
string self_test_id = 2;
}
message GetSelfTestReply {
bool is_compiled = 1;
string compile_msg = 2;
string stdout = 3;
string stderr = 4;
uint64 time = 5;
uint64 memory = 6;
}

message GetCasesRequest {
int64 contest_id = 1;
string submission_id = 2;
Expand Down
38 changes: 38 additions & 0 deletions api/sastoj/user/contest/service/v1/contest_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2a7c862

Please sign in to comment.