youtu_grpc/app/ranking_service/ranking/ranking_service.pb.go

546 lines
20 KiB
Go
Raw Normal View History

2025-02-05 18:45:49 +08:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.4
// protoc v3.19.4
2025-02-14 17:36:17 +08:00
// source: ranking_service.proto
2025-02-05 18:45:49 +08:00
2025-02-14 10:30:15 +08:00
package ranking
2025-02-05 18:45:49 +08:00
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Request struct {
state protoimpl.MessageState `protogen:"open.v1"`
Ping string `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Request) Reset() {
*x = Request{}
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[0]
2025-02-05 18:45:49 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Request) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Request) ProtoMessage() {}
func (x *Request) ProtoReflect() protoreflect.Message {
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[0]
2025-02-05 18:45:49 +08:00
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Request.ProtoReflect.Descriptor instead.
func (*Request) Descriptor() ([]byte, []int) {
2025-02-14 17:36:17 +08:00
return file_ranking_service_proto_rawDescGZIP(), []int{0}
2025-02-05 18:45:49 +08:00
}
func (x *Request) GetPing() string {
if x != nil {
return x.Ping
}
return ""
}
type Response struct {
state protoimpl.MessageState `protogen:"open.v1"`
Pong string `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Response) Reset() {
*x = Response{}
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[1]
2025-02-05 18:45:49 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Response) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Response) ProtoMessage() {}
func (x *Response) ProtoReflect() protoreflect.Message {
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[1]
2025-02-05 18:45:49 +08:00
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Response.ProtoReflect.Descriptor instead.
func (*Response) Descriptor() ([]byte, []int) {
2025-02-14 17:36:17 +08:00
return file_ranking_service_proto_rawDescGZIP(), []int{1}
2025-02-05 18:45:49 +08:00
}
func (x *Response) GetPong() string {
if x != nil {
return x.Pong
}
return ""
}
// 定义SetUserGameScoreRequest消息类型
type SetUserGameScoreRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
2025-02-07 17:01:48 +08:00
Score uint32 `protobuf:"varint,1,opt,name=score,proto3" json:"score,omitempty"` // 对应json的"score"
Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` // 对应json的"type", 带默认值0
UserId uint64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
AppId uint32 `protobuf:"varint,4,opt,name=appId,proto3" json:"appId,omitempty"` // 小程序id
2025-02-05 18:45:49 +08:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetUserGameScoreRequest) Reset() {
*x = SetUserGameScoreRequest{}
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[2]
2025-02-05 18:45:49 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetUserGameScoreRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetUserGameScoreRequest) ProtoMessage() {}
func (x *SetUserGameScoreRequest) ProtoReflect() protoreflect.Message {
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[2]
2025-02-05 18:45:49 +08:00
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetUserGameScoreRequest.ProtoReflect.Descriptor instead.
func (*SetUserGameScoreRequest) Descriptor() ([]byte, []int) {
2025-02-14 17:36:17 +08:00
return file_ranking_service_proto_rawDescGZIP(), []int{2}
2025-02-05 18:45:49 +08:00
}
func (x *SetUserGameScoreRequest) GetScore() uint32 {
if x != nil {
return x.Score
}
return 0
}
func (x *SetUserGameScoreRequest) GetType() uint32 {
if x != nil {
return x.Type
}
return 0
}
2025-02-07 17:01:48 +08:00
func (x *SetUserGameScoreRequest) GetUserId() uint64 {
2025-02-05 18:45:49 +08:00
if x != nil {
return x.UserId
}
return 0
}
2025-02-07 17:01:48 +08:00
func (x *SetUserGameScoreRequest) GetAppId() uint32 {
if x != nil {
return x.AppId
}
return 0
}
2025-02-05 18:45:49 +08:00
// 定义RankingData消息类型
2025-02-07 17:01:48 +08:00
type RankingList struct {
2025-02-05 18:45:49 +08:00
state protoimpl.MessageState `protogen:"open.v1"`
Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称对应db:"nickname"
Avatar string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"` // 头像对应db:"avatar"
Score uint32 `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"` // 得分对应db:"score"
UserId uint64 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户ID对应db:"app_user_id"
Rank uint32 `protobuf:"varint,5,opt,name=rank,proto3" json:"rank,omitempty"` // 排名对应db:"rank"
Self bool `protobuf:"varint,6,opt,name=self,proto3" json:"self,omitempty"` // 是否自我判断
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
2025-02-07 17:01:48 +08:00
func (x *RankingList) Reset() {
*x = RankingList{}
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[3]
2025-02-05 18:45:49 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
2025-02-07 17:01:48 +08:00
func (x *RankingList) String() string {
2025-02-05 18:45:49 +08:00
return protoimpl.X.MessageStringOf(x)
}
2025-02-07 17:01:48 +08:00
func (*RankingList) ProtoMessage() {}
2025-02-05 18:45:49 +08:00
2025-02-07 17:01:48 +08:00
func (x *RankingList) ProtoReflect() protoreflect.Message {
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[3]
2025-02-05 18:45:49 +08:00
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
2025-02-07 17:01:48 +08:00
// Deprecated: Use RankingList.ProtoReflect.Descriptor instead.
func (*RankingList) Descriptor() ([]byte, []int) {
2025-02-14 17:36:17 +08:00
return file_ranking_service_proto_rawDescGZIP(), []int{3}
2025-02-05 18:45:49 +08:00
}
2025-02-07 17:01:48 +08:00
func (x *RankingList) GetNickname() string {
2025-02-05 18:45:49 +08:00
if x != nil {
return x.Nickname
}
return ""
}
2025-02-07 17:01:48 +08:00
func (x *RankingList) GetAvatar() string {
2025-02-05 18:45:49 +08:00
if x != nil {
return x.Avatar
}
return ""
}
2025-02-07 17:01:48 +08:00
func (x *RankingList) GetScore() uint32 {
2025-02-05 18:45:49 +08:00
if x != nil {
return x.Score
}
return 0
}
2025-02-07 17:01:48 +08:00
func (x *RankingList) GetUserId() uint64 {
2025-02-05 18:45:49 +08:00
if x != nil {
return x.UserId
}
return 0
}
2025-02-07 17:01:48 +08:00
func (x *RankingList) GetRank() uint32 {
2025-02-05 18:45:49 +08:00
if x != nil {
return x.Rank
}
return 0
}
2025-02-07 17:01:48 +08:00
func (x *RankingList) GetSelf() bool {
2025-02-05 18:45:49 +08:00
if x != nil {
return x.Self
}
return false
}
2025-02-07 17:01:48 +08:00
type GetRankingListResponse struct {
2025-02-05 18:45:49 +08:00
state protoimpl.MessageState `protogen:"open.v1"`
2025-02-07 17:01:48 +08:00
RankingData []*RankingList `protobuf:"bytes,1,rep,name=rankingData,proto3" json:"rankingData,omitempty"`
2025-02-05 18:45:49 +08:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
2025-02-07 17:01:48 +08:00
func (x *GetRankingListResponse) Reset() {
*x = GetRankingListResponse{}
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[4]
2025-02-05 18:45:49 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
2025-02-07 17:01:48 +08:00
func (x *GetRankingListResponse) String() string {
2025-02-05 18:45:49 +08:00
return protoimpl.X.MessageStringOf(x)
}
2025-02-07 17:01:48 +08:00
func (*GetRankingListResponse) ProtoMessage() {}
2025-02-05 18:45:49 +08:00
2025-02-07 17:01:48 +08:00
func (x *GetRankingListResponse) ProtoReflect() protoreflect.Message {
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[4]
2025-02-05 18:45:49 +08:00
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
2025-02-07 17:01:48 +08:00
// Deprecated: Use GetRankingListResponse.ProtoReflect.Descriptor instead.
func (*GetRankingListResponse) Descriptor() ([]byte, []int) {
2025-02-14 17:36:17 +08:00
return file_ranking_service_proto_rawDescGZIP(), []int{4}
2025-02-05 18:45:49 +08:00
}
2025-02-07 17:01:48 +08:00
func (x *GetRankingListResponse) GetRankingData() []*RankingList {
2025-02-05 18:45:49 +08:00
if x != nil {
2025-02-07 17:01:48 +08:00
return x.RankingData
}
return nil
}
type GetRankingListRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
AppId uint32 `protobuf:"varint,1,opt,name=appId,proto3" json:"appId,omitempty"`
Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
UserId uint64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetRankingListRequest) Reset() {
*x = GetRankingListRequest{}
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[5]
2025-02-07 17:01:48 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetRankingListRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRankingListRequest) ProtoMessage() {}
func (x *GetRankingListRequest) ProtoReflect() protoreflect.Message {
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[5]
2025-02-07 17:01:48 +08:00
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRankingListRequest.ProtoReflect.Descriptor instead.
func (*GetRankingListRequest) Descriptor() ([]byte, []int) {
2025-02-14 17:36:17 +08:00
return file_ranking_service_proto_rawDescGZIP(), []int{5}
2025-02-07 17:01:48 +08:00
}
func (x *GetRankingListRequest) GetAppId() uint32 {
if x != nil {
return x.AppId
2025-02-05 18:45:49 +08:00
}
return 0
}
2025-02-07 17:01:48 +08:00
func (x *GetRankingListRequest) GetType() uint32 {
2025-02-05 18:45:49 +08:00
if x != nil {
2025-02-07 17:01:48 +08:00
return x.Type
}
return 0
}
func (x *GetRankingListRequest) GetUserId() uint64 {
if x != nil {
return x.UserId
2025-02-05 18:45:49 +08:00
}
return 0
}
// 定义Base响应结构
type BaseResult struct {
state protoimpl.MessageState `protogen:"open.v1"`
ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` // 错误码
ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` // 错误信息
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BaseResult) Reset() {
*x = BaseResult{}
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[6]
2025-02-05 18:45:49 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BaseResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BaseResult) ProtoMessage() {}
func (x *BaseResult) ProtoReflect() protoreflect.Message {
2025-02-14 17:36:17 +08:00
mi := &file_ranking_service_proto_msgTypes[6]
2025-02-05 18:45:49 +08:00
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BaseResult.ProtoReflect.Descriptor instead.
func (*BaseResult) Descriptor() ([]byte, []int) {
2025-02-14 17:36:17 +08:00
return file_ranking_service_proto_rawDescGZIP(), []int{6}
2025-02-05 18:45:49 +08:00
}
func (x *BaseResult) GetErrorCode() int32 {
if x != nil {
return x.ErrorCode
}
return 0
}
func (x *BaseResult) GetErrorMsg() string {
if x != nil {
return x.ErrorMsg
}
return ""
}
2025-02-14 17:36:17 +08:00
var File_ranking_service_proto protoreflect.FileDescriptor
var file_ranking_service_proto_rawDesc = string([]byte{
0x0a, 0x15, 0x72, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x72, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67,
0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x1d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x22, 0x1e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x22, 0x71, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x55, 0x73,
0x65, 0x72, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0d, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06,
0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x75, 0x73,
0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x04, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x98, 0x01, 0x0a, 0x0b, 0x52,
0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69,
0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69,
0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x14,
0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x73,
0x63, 0x6f, 0x72, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a,
0x04, 0x72, 0x61, 0x6e, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x72, 0x61, 0x6e,
0x6b, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6c, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52,
0x04, 0x73, 0x65, 0x6c, 0x66, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x6b,
0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x3e, 0x0a, 0x0b, 0x72, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x73,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x69,
0x73, 0x74, 0x52, 0x0b, 0x72, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x22,
0x59, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x12,
2025-02-05 18:45:49 +08:00
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79,
0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01,
2025-02-14 17:36:17 +08:00
0x28, 0x04, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x48, 0x0a, 0x0a, 0x42, 0x61,
0x73, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f,
0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x65, 0x72,
0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72,
0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f,
0x72, 0x4d, 0x73, 0x67, 0x32, 0x8c, 0x02, 0x0a, 0x0f, 0x72, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67,
0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67,
0x12, 0x18, 0x2e, 0x72, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x72, 0x61, 0x6e,
0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72,
0x47, 0x61, 0x6d, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x28, 0x2e, 0x72, 0x61, 0x6e, 0x6b,
0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x74, 0x55,
0x73, 0x65, 0x72, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x72, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
0x12, 0x61, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x69,
0x73, 0x74, 0x12, 0x26, 0x2e, 0x72, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x4c,
0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x61, 0x6e,
0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74,
0x52, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x72, 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x67,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
2025-02-05 18:45:49 +08:00
})
var (
2025-02-14 17:36:17 +08:00
file_ranking_service_proto_rawDescOnce sync.Once
file_ranking_service_proto_rawDescData []byte
2025-02-05 18:45:49 +08:00
)
2025-02-14 17:36:17 +08:00
func file_ranking_service_proto_rawDescGZIP() []byte {
file_ranking_service_proto_rawDescOnce.Do(func() {
file_ranking_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ranking_service_proto_rawDesc), len(file_ranking_service_proto_rawDesc)))
2025-02-05 18:45:49 +08:00
})
2025-02-14 17:36:17 +08:00
return file_ranking_service_proto_rawDescData
}
var file_ranking_service_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_ranking_service_proto_goTypes = []any{
(*Request)(nil), // 0: ranking_service.Request
(*Response)(nil), // 1: ranking_service.Response
(*SetUserGameScoreRequest)(nil), // 2: ranking_service.SetUserGameScoreRequest
(*RankingList)(nil), // 3: ranking_service.RankingList
(*GetRankingListResponse)(nil), // 4: ranking_service.GetRankingListResponse
(*GetRankingListRequest)(nil), // 5: ranking_service.GetRankingListRequest
(*BaseResult)(nil), // 6: ranking_service.BaseResult
}
var file_ranking_service_proto_depIdxs = []int32{
3, // 0: ranking_service.GetRankingListResponse.rankingData:type_name -> ranking_service.RankingList
0, // 1: ranking_service.ranking_service.Ping:input_type -> ranking_service.Request
2, // 2: ranking_service.ranking_service.SetUserGameScore:input_type -> ranking_service.SetUserGameScoreRequest
5, // 3: ranking_service.ranking_service.GetRankingList:input_type -> ranking_service.GetRankingListRequest
1, // 4: ranking_service.ranking_service.Ping:output_type -> ranking_service.Response
6, // 5: ranking_service.ranking_service.SetUserGameScore:output_type -> ranking_service.BaseResult
4, // 6: ranking_service.ranking_service.GetRankingList:output_type -> ranking_service.GetRankingListResponse
2025-02-07 17:01:48 +08:00
4, // [4:7] is the sub-list for method output_type
1, // [1:4] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
2025-02-05 18:45:49 +08:00
}
2025-02-14 17:36:17 +08:00
func init() { file_ranking_service_proto_init() }
func file_ranking_service_proto_init() {
if File_ranking_service_proto != nil {
2025-02-05 18:45:49 +08:00
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
2025-02-14 17:36:17 +08:00
RawDescriptor: unsafe.Slice(unsafe.StringData(file_ranking_service_proto_rawDesc), len(file_ranking_service_proto_rawDesc)),
2025-02-05 18:45:49 +08:00
NumEnums: 0,
2025-02-07 17:01:48 +08:00
NumMessages: 7,
2025-02-05 18:45:49 +08:00
NumExtensions: 0,
NumServices: 1,
},
2025-02-14 17:36:17 +08:00
GoTypes: file_ranking_service_proto_goTypes,
DependencyIndexes: file_ranking_service_proto_depIdxs,
MessageInfos: file_ranking_service_proto_msgTypes,
2025-02-05 18:45:49 +08:00
}.Build()
2025-02-14 17:36:17 +08:00
File_ranking_service_proto = out.File
file_ranking_service_proto_goTypes = nil
file_ranking_service_proto_depIdxs = nil
2025-02-05 18:45:49 +08:00
}