-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rsjudge-grpc): 🚚 restructure proto packages
- Loading branch information
1 parent
dc770f3
commit 5da0295
Showing
4 changed files
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
syntax = "proto3"; | ||
|
||
package cases.v1; | ||
|
||
// Fetch cases from backend server. | ||
service CasesService { | ||
// Fetch cases from the backend server. | ||
rpc FetchCases(FetchCasesRequest) returns (FetchCasesResponse) {} | ||
} | ||
|
||
// Request to fetch cases from the backend server. | ||
message FetchCasesRequest { | ||
// The id of the problem. | ||
int32 problem_id = 1; | ||
} | ||
|
||
// Response to fetch cases from the backend server. | ||
message FetchCasesResponse { | ||
// The id of the cases requested. | ||
int32 cases_id = 1; | ||
// The tarball of the cases, with config file. | ||
// | ||
// TODO: The tarball should be compressed in a specified format. | ||
// Maybe .tar.zst | ||
bytes tarball = 2; | ||
} |
2 changes: 1 addition & 1 deletion
2
...judge-grpc/proto/rsjudge/v1/rsjudge.proto → ...s/rsjudge-grpc/proto/judge/v1/judge.proto
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
syntax = "proto3"; | ||
|
||
package rsjudge.v1; | ||
package judge.v1; | ||
|
||
import "google/protobuf/empty.proto"; | ||
|
||
|
This file contains 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
This file contains 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