go-common/app/service/live/rankdb/api/liverpc/v1/UserRank.proto

40 lines
848 B
Protocol Buffer
Raw Normal View History

2019-04-22 10:49:16 +00:00
syntax = "proto3";
package rankdb.v1;
option go_package = "v1";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
service UserRank {
/**
*
*/
rpc getUserRank (UserRankGetUserRankReq) returns (UserRankGetUserRankResp);
}
message UserRankGetUserRankReq {
// 房间号
int64 uid = 1 [(gogoproto.jsontag) = "uid"];
// 类型
string type = 2 [(gogoproto.jsontag) = "type"];
}
message UserRankGetUserRankResp {
// code
int64 code = 1 [(gogoproto.jsontag) = "code"];
// msg
string msg = 2 [(gogoproto.jsontag) = "msg"];
//
Data data = 3 [(gogoproto.jsontag) = "data"];
message Data {
//
int64 rank = 1 [(gogoproto.jsontag) = "rank"];
//
int64 score = 2 [(gogoproto.jsontag) = "score"];
}
}