Skip to content

Commit

Permalink
prepare platform service
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDavenport committed Apr 18, 2024
1 parent 0b502b8 commit 63ce554
Show file tree
Hide file tree
Showing 3 changed files with 420 additions and 0 deletions.
25 changes: 25 additions & 0 deletions gamercade_interface/proto/platform.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
syntax = "proto3";

import "common.proto";
import "game.proto";

package platform;

service PlatformService {
rpc FrontPage(common.Empty) returns (FrontPageResponse);
rpc GameSearch(GameSearchRequest) returns (game.MultipleGamesInfoResponse);
}


message GameSearchRequest {
optional string name = 1;
repeated int32 tags = 2;
}

message FrontPageResponse {
map<sfixed64, game.GameInfoBasic> data = 1;

repeated sfixed64 popular_games = 2;
repeated sfixed64 top_rated_games = 3;
repeated sfixed64 new_games = 4;
}
3 changes: 3 additions & 0 deletions gamercade_interface/src/output/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ pub mod common {
pub mod game {
include!("game.rs");
}
pub mod platform {
include!("platform.rs");
}
pub mod release {
include!("release.rs");
}
Expand Down
Loading

0 comments on commit 63ce554

Please sign in to comment.