| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- syntax = "proto3";
- package gorpc;
- option go_package = "code.clickto.dev/nomo-server/go-service-pb/client";
- import "pb/common.proto";
- message GameVo {
- int64 id = 1;
- string name = 2;
- string pkg = 3;
- string categories = 4;
- string icon = 5;
- string internal_icon = 6;
- string source_icon = 7;
- int64 status = 8;
- int64 state = 9;
- int64 enableRating = 10;
- int64 gameUpdateTime = 11;
- int64 gameBoostCount = 12;
- string gameBoostCountryCount = 13;
- int64 createTime = 14;
- int64 updateTime = 15;
- }
- message GameReq { GameVo vo = 1; }
- message GameListReq {
- Page page = 1;
- repeated string pkgs = 2;
- GameVo vo = 3;
- }
- message GameListRes {
- int64 total = 1;
- repeated GameVo list = 2;
- }
- message RelGameRankVo {
- int64 id = 1;
- int64 gameId = 2;
- int64 rankId = 3;
- int64 weight = 4;
- int64 createTime = 5;
- int64 updateTime = 6;
- }
- message RelGameRankReq { RelGameRankVo vo = 1; }
- message RelGameRankListReq {
- Page page = 1;
- RelGameRankVo vo = 2;
- }
- message RelGameRankListRes {
- int64 total = 1;
- repeated RelGameRankVo list = 2;
- }
- message RelGameVpnGroupVo {
- int64 id = 1;
- int64 gameId = 2;
- string productCode = 3;
- int64 vpnGroupId = 4;
- int64 status = 5;
- int64 createTime = 6;
- int64 updateTime = 7;
- }
- message RelGameVpnGroupReq { RelGameVpnGroupVo vo = 1; }
- message RelGameVpnGroupListReq {
- repeated int64 gameIds = 1;
- RelGameVpnGroupVo vo = 2;
- }
- message RelGameVpnGroupListRes {
- int64 total = 1;
- repeated RelGameVpnGroupVo list = 2;
- }
- message GameRedisHScanByNameReq {
- string name = 1;
- int64 cursor = 2;
- int64 count = 3;
- }
- message GameRedisHScanByNameResp {
- repeated int64 ids = 1;
- int64 cursor = 2;
- }
- message GameCustomerVo {
- int64 id = 1;
- string name = 2;
- string pkg = 3;
- string icon = 4;
- int64 createTime = 5;
- int64 updateTime = 6;
- }
- message GameCustomerListReq {
- Page page = 1;
- repeated string pkgs = 2;
- GameCustomerVo vo = 3;
- }
- message GameCustomerListRes {
- int64 total = 1;
- repeated GameCustomerVo list = 2;
- }
- message GameCustomerAddResp {
- GameCustomerVo vo = 1;
- bool ExistBoost = 2;
- }
- message GameCategoryVo {
- int64 id = 1;
- string code = 2;
- string name = 3;
- string described = 4;
- int64 createTime = 5;
- int64 updateTime = 6;
- }
- message GameCategoryReq { GameCategoryVo vo = 1; }
- message GameCategoryListReq {
- Page page = 1;
- GameCategoryVo vo = 3;
- }
- message GameCategoryListRes {
- int64 total = 1;
- repeated GameCategoryVo list = 2;
- }
- // 定义一个GameRank的属性字段
- message GameRankOption { bool showRanking = 1; }
- service GoGameClient {
- // 加速器游戏管理
- rpc GameAdd(GameVo) returns (GameVo);
- rpc GameUpdate(GameVo) returns (Empty);
- rpc GameDel(Ids) returns (Empty);
- rpc GameGet(GameReq) returns (GameVo);
- rpc GameList(GameListReq) returns (GameListRes);
- rpc GameAll(Request) returns (GameListRes);
- rpc GameRedisHScanByName(GameRedisHScanByNameReq)
- returns (GameRedisHScanByNameResp);
- // 游戏榜单关联关系
- rpc RelGameRankAdd(RelGameRankVo) returns (RelGameRankVo);
- rpc RelGameRankUpdate(RelGameRankVo) returns (Empty);
- rpc RelGameRankDel(Ids) returns (Empty);
- rpc RelGameRankGet(RelGameRankReq) returns (RelGameRankVo);
- rpc RelGameRankList(RelGameRankListReq) returns (RelGameRankListRes);
- // 游戏地域关联关系
- rpc RelGameVpnGroupAdd(RelGameVpnGroupVo) returns (RelGameVpnGroupVo);
- rpc RelGameVpnGroupUpdate(RelGameVpnGroupVo) returns (Empty);
- rpc RelGameVpnGroupDel(Ids) returns (Empty);
- rpc RelGameVpnGroupGet(RelGameVpnGroupReq) returns (RelGameVpnGroupVo);
- rpc RelGameVpnGroupList(RelGameVpnGroupListReq)
- returns (RelGameVpnGroupListRes);
- // 用户提交游戏
- rpc GameCustomerList(GameCustomerListReq) returns (GameCustomerListRes);
- rpc GameCustomerAdd(GameCustomerVo) returns (GameCustomerAddResp);
- rpc GameCustomerDel(Ids) returns (Empty);
- rpc GameCategoryAdd(GameCategoryVo) returns (GameCategoryVo);
- rpc GameCategoryUpdate(GameCategoryVo) returns (Empty);
- rpc GameCategoryDel(Ids) returns (Empty);
- rpc GameCategoryGet(GameCategoryReq) returns (GameCategoryVo);
- rpc GameCategoryList(GameCategoryListReq) returns (GameCategoryListRes);
- rpc GameCategoryAll(Request) returns (GameCategoryListRes);
- }
|