From 866005d349de8d8ac7532d0c0a0449cbfd2ae1a9 Mon Sep 17 00:00:00 2001 From: "DESKTOP-V763RJ7\\Administrator" <835606593@qq.com> Date: Thu, 12 Feb 2026 18:41:19 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E5=91=BD=E5=90=8D=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Proto/RpcServer/gen/api.swagger.json | 130 ++++ .../{rs_common => rscommon}/rs_common.pb.go | 8 +- .../{grpc_pb => rspb}/service_gateway.pb.go | 10 +- .../service_gateway_grpc.pb.go | 2 +- .../rs/{grpc_pb => rspb}/service_qgdzs.pb.go | 584 +++++++++++++++--- .../{grpc_pb => rspb}/service_qgdzs.pb.gw.go | 130 +++- .../service_qgdzs_grpc.pb.go | 80 ++- .../rs/{grpc_pb => rspb}/service_scene.pb.go | 8 +- .../service_scene_grpc.pb.go | 2 +- .../rs/{grpc_pb => rspb}/service_user.pb.go | 12 +- .../{grpc_pb => rspb}/service_user.pb.gw.go | 4 +- .../{grpc_pb => rspb}/service_user_grpc.pb.go | 2 +- Proto/RpcServer/sources/rs_common.proto | 2 +- Proto/RpcServer/sources/service_gateway.proto | 2 +- Proto/RpcServer/sources/service_qgdzs.proto | 32 +- Proto/RpcServer/sources/service_scene.proto | 2 +- Proto/RpcServer/sources/service_user.proto | 2 +- Proto/SocketServer/gen/client/Action.cs | 4 +- Proto/SocketServer/gen/client/Define.cs | 4 +- Proto/SocketServer/gen/client/Service.cs | 4 +- Proto/SocketServer/gen/client/SsCommon.cs | 4 +- .../{ss_common => sscommon}/ss_common.pb.go | 8 +- .../proto/ss/{ss_pb => sspb}/action.pb.go | 10 +- .../proto/ss/{ss_pb => sspb}/define.pb.go | 10 +- .../proto/ss/{ss_pb => sspb}/service.pb.go | 9 +- Proto/SocketServer/sources/action.proto | 2 +- Proto/SocketServer/sources/define.proto | 2 +- Proto/SocketServer/sources/service.proto | 2 +- Proto/SocketServer/sources/ss_common.proto | 2 +- Publish/doc.txt | 2 +- Tools/quickly/.trae/rules/project_rules.md | 4 + Tools/quickly/backend/settings.go | 9 +- Tools/quickly/frontend/package.json.md5 | 2 +- 33 files changed, 917 insertions(+), 173 deletions(-) rename Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/{rs_common => rscommon}/rs_common.pb.go (95%) rename Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/{grpc_pb => rspb}/service_gateway.pb.go (97%) rename Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/{grpc_pb => rspb}/service_gateway_grpc.pb.go (99%) rename Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/{grpc_pb => rspb}/service_qgdzs.pb.go (74%) rename Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/{grpc_pb => rspb}/service_qgdzs.pb.gw.go (84%) rename Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/{grpc_pb => rspb}/service_qgdzs_grpc.pb.go (85%) rename Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/{grpc_pb => rspb}/service_scene.pb.go (98%) rename Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/{grpc_pb => rspb}/service_scene_grpc.pb.go (99%) rename Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/{grpc_pb => rspb}/service_user.pb.go (98%) rename Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/{grpc_pb => rspb}/service_user.pb.gw.go (99%) rename Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/{grpc_pb => rspb}/service_user_grpc.pb.go (99%) rename Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/{ss_common => sscommon}/ss_common.pb.go (90%) rename Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/{ss_pb => sspb}/action.pb.go (98%) rename Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/{ss_pb => sspb}/define.pb.go (96%) rename Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/{ss_pb => sspb}/service.pb.go (97%) create mode 100644 Tools/quickly/.trae/rules/project_rules.md diff --git a/Proto/RpcServer/gen/api.swagger.json b/Proto/RpcServer/gen/api.swagger.json index acec34d..4b5a009 100644 --- a/Proto/RpcServer/gen/api.swagger.json +++ b/Proto/RpcServer/gen/api.swagger.json @@ -79,6 +79,60 @@ ] } }, + "/qgdzs/auth/point/info": { + "post": { + "summary": "获取学识分", + "operationId": "Qgdzs_GetPoint", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetPointResp" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GetPointReq" + } + } + ], + "tags": [ + "Qgdzs" + ] + } + }, + "/qgdzs/auth/point/record": { + "post": { + "summary": "---------- 学识分 ----------\n获取学识分获取记录", + "operationId": "Qgdzs_GetPointRecord", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/GetPointRecordResp" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GetPointRecordReq" + } + } + ], + "tags": [ + "Qgdzs" + ] + } + }, "/qgdzs/open/category/answer": { "post": { "summary": "回答题目", @@ -470,6 +524,82 @@ } } }, + "GetPointRecordItem": { + "type": "object", + "properties": { + "source": { + "type": "integer", + "format": "int32", + "title": "来源" + }, + "point": { + "type": "string", + "format": "int64", + "title": "学识分" + }, + "create_time": { + "type": "string", + "format": "int64", + "title": "创建时间" + } + } + }, + "GetPointRecordReq": { + "type": "object", + "properties": { + "usn": { + "type": "string", + "format": "int64" + }, + "page": { + "type": "integer", + "format": "int32" + }, + "page_size": { + "type": "integer", + "format": "int32" + } + }, + "title": "---------- GetPointRecord ----------" + }, + "GetPointRecordResp": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "title": "总数" + }, + "records": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/GetPointRecordItem" + }, + "title": "记录" + } + } + }, + "GetPointReq": { + "type": "object", + "properties": { + "usn": { + "type": "string", + "format": "int64" + } + }, + "title": "---------- GetPoint ----------" + }, + "GetPointResp": { + "type": "object", + "properties": { + "point": { + "type": "string", + "format": "int64", + "title": "学识分" + } + } + }, "GetQuestionInfoReq": { "type": "object", "properties": { diff --git a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rs_common/rs_common.pb.go b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rscommon/rs_common.pb.go similarity index 95% rename from Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rs_common/rs_common.pb.go rename to Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rscommon/rs_common.pb.go index 1071439..aee7a05 100644 --- a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rs_common/rs_common.pb.go +++ b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rscommon/rs_common.pb.go @@ -4,7 +4,7 @@ // protoc v4.25.1 // source: rs_common.proto -package rs_common +package rscommon import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -82,11 +82,11 @@ var file_rs_common_proto_rawDesc = []byte{ 0x6f, 0x22, 0x31, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x4d, 0x73, 0x67, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, + 0x03, 0x4d, 0x73, 0x67, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, 0x69, 0x61, 0x2f, 0x6d, 0x6d, 0x6f, 0x72, 0x70, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x72, 0x73, 0x2f, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x2f, 0x72, 0x73, 0x2f, 0x72, 0x73, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_gateway.pb.go b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_gateway.pb.go similarity index 97% rename from Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_gateway.pb.go rename to Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_gateway.pb.go index 2ff1e0c..4adb732 100644 --- a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_gateway.pb.go +++ b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_gateway.pb.go @@ -4,10 +4,10 @@ // protoc v4.25.1 // source: service_gateway.proto -package grpc_pb +package rspb import ( - _ "git.hlsq.asia/mmorpg/service-common/proto/rs/rs_common" + _ "git.hlsq.asia/mmorpg/service-common/proto/rs/rscommon" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -228,11 +228,11 @@ var file_service_gateway_proto_rawDesc = []byte{ 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x28, 0x01, 0x12, 0x29, 0x0a, 0x08, 0x4b, 0x69, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0c, 0x2e, 0x4b, 0x69, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x0d, 0x2e, 0x4b, 0x69, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, + 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, 0x69, 0x61, 0x2f, 0x6d, 0x6d, 0x6f, 0x72, 0x70, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x72, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x6f, 0x2f, 0x72, 0x73, 0x2f, 0x72, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( diff --git a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_gateway_grpc.pb.go b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_gateway_grpc.pb.go similarity index 99% rename from Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_gateway_grpc.pb.go rename to Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_gateway_grpc.pb.go index 1b82b52..ebf2f66 100644 --- a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_gateway_grpc.pb.go +++ b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_gateway_grpc.pb.go @@ -4,7 +4,7 @@ // - protoc v4.25.1 // source: service_gateway.proto -package grpc_pb +package rspb import ( context "context" diff --git a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_qgdzs.pb.go b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_qgdzs.pb.go similarity index 74% rename from Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_qgdzs.pb.go rename to Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_qgdzs.pb.go index 73d9306..e3a7546 100644 --- a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_qgdzs.pb.go +++ b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_qgdzs.pb.go @@ -4,10 +4,10 @@ // protoc v4.25.1 // source: service_qgdzs.proto -package grpc_pb +package rspb import ( - _ "git.hlsq.asia/mmorpg/service-common/proto/rs/rs_common" + _ "git.hlsq.asia/mmorpg/service-common/proto/rs/rscommon" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -1310,6 +1310,283 @@ func (x *GetQuestionInfoResp) GetExplanation() string { return "" } +// ---------- GetPointRecord ---------- +type GetPointRecordReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + USN int64 `protobuf:"varint,1,opt,name=USN,json=usn,proto3" json:"USN,omitempty"` + Page int32 `protobuf:"varint,2,opt,name=Page,json=page,proto3" json:"Page,omitempty"` + PageSize int32 `protobuf:"varint,3,opt,name=PageSize,json=page_size,proto3" json:"PageSize,omitempty"` +} + +func (x *GetPointRecordReq) Reset() { + *x = GetPointRecordReq{} + if protoimpl.UnsafeEnabled { + mi := &file_service_qgdzs_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPointRecordReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPointRecordReq) ProtoMessage() {} + +func (x *GetPointRecordReq) ProtoReflect() protoreflect.Message { + mi := &file_service_qgdzs_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetPointRecordReq.ProtoReflect.Descriptor instead. +func (*GetPointRecordReq) Descriptor() ([]byte, []int) { + return file_service_qgdzs_proto_rawDescGZIP(), []int{22} +} + +func (x *GetPointRecordReq) GetUSN() int64 { + if x != nil { + return x.USN + } + return 0 +} + +func (x *GetPointRecordReq) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *GetPointRecordReq) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +type GetPointRecordResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Count int32 `protobuf:"varint,1,opt,name=Count,json=count,proto3" json:"Count,omitempty"` // 总数 + Records []*GetPointRecordItem `protobuf:"bytes,2,rep,name=Records,json=records,proto3" json:"Records,omitempty"` // 记录 +} + +func (x *GetPointRecordResp) Reset() { + *x = GetPointRecordResp{} + if protoimpl.UnsafeEnabled { + mi := &file_service_qgdzs_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPointRecordResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPointRecordResp) ProtoMessage() {} + +func (x *GetPointRecordResp) ProtoReflect() protoreflect.Message { + mi := &file_service_qgdzs_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetPointRecordResp.ProtoReflect.Descriptor instead. +func (*GetPointRecordResp) Descriptor() ([]byte, []int) { + return file_service_qgdzs_proto_rawDescGZIP(), []int{23} +} + +func (x *GetPointRecordResp) GetCount() int32 { + if x != nil { + return x.Count + } + return 0 +} + +func (x *GetPointRecordResp) GetRecords() []*GetPointRecordItem { + if x != nil { + return x.Records + } + return nil +} + +type GetPointRecordItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Source int32 `protobuf:"varint,1,opt,name=Source,json=source,proto3" json:"Source,omitempty"` // 来源 + Point int64 `protobuf:"varint,2,opt,name=Point,json=point,proto3" json:"Point,omitempty"` // 学识分 + CreateTime int64 `protobuf:"varint,3,opt,name=CreateTime,json=create_time,proto3" json:"CreateTime,omitempty"` // 创建时间 +} + +func (x *GetPointRecordItem) Reset() { + *x = GetPointRecordItem{} + if protoimpl.UnsafeEnabled { + mi := &file_service_qgdzs_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPointRecordItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPointRecordItem) ProtoMessage() {} + +func (x *GetPointRecordItem) ProtoReflect() protoreflect.Message { + mi := &file_service_qgdzs_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetPointRecordItem.ProtoReflect.Descriptor instead. +func (*GetPointRecordItem) Descriptor() ([]byte, []int) { + return file_service_qgdzs_proto_rawDescGZIP(), []int{24} +} + +func (x *GetPointRecordItem) GetSource() int32 { + if x != nil { + return x.Source + } + return 0 +} + +func (x *GetPointRecordItem) GetPoint() int64 { + if x != nil { + return x.Point + } + return 0 +} + +func (x *GetPointRecordItem) GetCreateTime() int64 { + if x != nil { + return x.CreateTime + } + return 0 +} + +// ---------- GetPoint ---------- +type GetPointReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + USN int64 `protobuf:"varint,1,opt,name=USN,json=usn,proto3" json:"USN,omitempty"` +} + +func (x *GetPointReq) Reset() { + *x = GetPointReq{} + if protoimpl.UnsafeEnabled { + mi := &file_service_qgdzs_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPointReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPointReq) ProtoMessage() {} + +func (x *GetPointReq) ProtoReflect() protoreflect.Message { + mi := &file_service_qgdzs_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetPointReq.ProtoReflect.Descriptor instead. +func (*GetPointReq) Descriptor() ([]byte, []int) { + return file_service_qgdzs_proto_rawDescGZIP(), []int{25} +} + +func (x *GetPointReq) GetUSN() int64 { + if x != nil { + return x.USN + } + return 0 +} + +type GetPointResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Point int64 `protobuf:"varint,1,opt,name=Point,json=point,proto3" json:"Point,omitempty"` // 学识分 +} + +func (x *GetPointResp) Reset() { + *x = GetPointResp{} + if protoimpl.UnsafeEnabled { + mi := &file_service_qgdzs_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPointResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPointResp) ProtoMessage() {} + +func (x *GetPointResp) ProtoReflect() protoreflect.Message { + mi := &file_service_qgdzs_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetPointResp.ProtoReflect.Descriptor instead. +func (*GetPointResp) Descriptor() ([]byte, []int) { + return file_service_qgdzs_proto_rawDescGZIP(), []int{26} +} + +func (x *GetPointResp) GetPoint() int64 { + if x != nil { + return x.Point + } + return 0 +} + var File_service_qgdzs_proto protoreflect.FileDescriptor var file_service_qgdzs_proto_rawDesc = []byte{ @@ -1439,79 +1716,112 @@ var file_service_qgdzs_proto_rawDesc = []byte{ 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x78, 0x70, 0x6c, 0x61, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xc7, 0x08, 0x0a, 0x05, 0x51, 0x67, 0x64, 0x7a, 0x73, 0x12, - 0x69, 0x0a, 0x10, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x51, 0x75, - 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x71, 0x67, - 0x64, 0x7a, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x65, 0x5f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6a, 0x0a, 0x11, 0x52, 0x61, - 0x6e, 0x64, 0x6f, 0x6d, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x15, 0x2e, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x47, - 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x26, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x71, 0x67, 0x64, 0x7a, - 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x2f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x2f, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x71, 0x0a, 0x14, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, - 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, - 0x2e, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, - 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x52, 0x61, 0x6e, 0x64, 0x6f, - 0x6d, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, - 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x2f, 0x72, 0x61, 0x6e, 0x64, - 0x6f, 0x6d, 0x2f, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x67, 0x0a, 0x0e, 0x47, 0x65, 0x74, - 0x41, 0x6c, 0x6c, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x2e, 0x47, 0x65, - 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, - 0x13, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x3a, 0x01, 0x2a, 0x22, - 0x21, 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x2f, 0x63, 0x61, 0x74, - 0x65, 0x67, 0x6f, 0x72, 0x79, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, - 0x72, 0x79, 0x12, 0x72, 0x0a, 0x13, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x47, 0x65, - 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x2e, 0x43, 0x61, 0x74, 0x65, - 0x67, 0x6f, 0x72, 0x79, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x47, 0x65, 0x74, - 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x28, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, - 0x6f, 0x70, 0x65, 0x6e, 0x2f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x2f, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x79, 0x0a, 0x16, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, - 0x72, 0x79, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x1a, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x41, 0x6e, 0x73, 0x77, 0x65, - 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x43, - 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, - 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x6f, 0x70, 0x65, - 0x6e, 0x2f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x2f, 0x61, 0x6e, 0x73, 0x77, 0x65, - 0x72, 0x12, 0x6e, 0x0a, 0x12, 0x51, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x79, 0x47, 0x65, 0x74, 0x51, - 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x51, 0x75, 0x69, 0x63, 0x6b, 0x6c, - 0x79, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, - 0x17, 0x2e, 0x51, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x79, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, - 0x3a, 0x01, 0x2a, 0x22, 0x1c, 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, - 0x2f, 0x71, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x79, 0x2f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x75, 0x0a, 0x15, 0x51, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x79, 0x41, 0x6e, 0x73, 0x77, - 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x51, 0x75, 0x69, - 0x63, 0x6b, 0x6c, 0x79, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x51, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x79, 0x41, - 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x71, - 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x2f, 0x71, 0x75, 0x69, 0x63, 0x6b, 0x6c, - 0x79, 0x2f, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0d, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x3a, 0x01, 0x2a, 0x22, - 0x16, 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x67, 0x65, 0x74, - 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x66, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x51, 0x75, - 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x13, 0x2e, 0x47, 0x65, 0x74, - 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, - 0x14, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x65, 0x73, 0x70, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, - 0x22, 0x1d, 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x2f, 0x67, 0x65, - 0x74, 0x5f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x42, - 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, 0x69, 0x61, - 0x2f, 0x6d, 0x6d, 0x6f, 0x72, 0x70, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x73, 0x2f, - 0x67, 0x72, 0x70, 0x63, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x56, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, + 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x53, + 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x75, 0x73, 0x6e, 0x12, 0x12, 0x0a, 0x04, + 0x50, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, + 0x12, 0x1b, 0x0a, 0x08, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x59, 0x0a, + 0x12, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x07, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x52, + 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x63, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x50, + 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x16, + 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0a, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x1f, 0x0a, + 0x0b, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, + 0x55, 0x53, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x75, 0x73, 0x6e, 0x22, 0x24, + 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, + 0x0a, 0x05, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x32, 0xf3, 0x09, 0x0a, 0x05, 0x51, 0x67, 0x64, 0x7a, 0x73, 0x12, 0x69, + 0x0a, 0x10, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x14, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, + 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, + 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x71, 0x67, 0x64, + 0x7a, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, + 0x5f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6a, 0x0a, 0x11, 0x52, 0x61, 0x6e, + 0x64, 0x6f, 0x6d, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, + 0x2e, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x47, 0x65, + 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x26, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, + 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x2f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x2f, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x71, 0x0a, 0x14, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x41, + 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x2e, + 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, + 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, 0x2f, + 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x2f, 0x72, 0x61, 0x6e, 0x64, 0x6f, + 0x6d, 0x2f, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x67, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x41, + 0x6c, 0x6c, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x2e, 0x47, 0x65, 0x74, + 0x41, 0x6c, 0x6c, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x13, + 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x3a, 0x01, 0x2a, 0x22, 0x21, + 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x2f, 0x63, 0x61, 0x74, 0x65, + 0x67, 0x6f, 0x72, 0x79, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, + 0x79, 0x12, 0x72, 0x0a, 0x13, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x47, 0x65, 0x74, + 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, + 0x6f, 0x72, 0x79, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x1a, 0x18, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x47, 0x65, 0x74, 0x51, + 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x28, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x6f, + 0x70, 0x65, 0x6e, 0x2f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x2f, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x79, 0x0a, 0x16, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, + 0x79, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x1a, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, + 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x43, 0x61, + 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, + 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, + 0x2f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x2f, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, + 0x12, 0x6e, 0x0a, 0x12, 0x51, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x79, 0x47, 0x65, 0x74, 0x51, 0x75, + 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x51, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x79, + 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x17, + 0x2e, 0x51, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x79, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x3a, + 0x01, 0x2a, 0x22, 0x1c, 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x2f, + 0x71, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x79, 0x2f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x75, 0x0a, 0x15, 0x51, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x79, 0x41, 0x6e, 0x73, 0x77, 0x65, + 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x51, 0x75, 0x69, 0x63, + 0x6b, 0x6c, 0x79, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x51, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x79, 0x41, 0x6e, + 0x73, 0x77, 0x65, 0x72, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x71, 0x67, + 0x64, 0x7a, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x2f, 0x71, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x79, + 0x2f, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0d, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x3a, 0x01, 0x2a, 0x22, 0x16, + 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x67, 0x65, 0x74, 0x5f, + 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x66, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, + 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x13, 0x2e, 0x47, 0x65, 0x74, 0x51, + 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x14, + 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x65, 0x73, 0x70, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, 0x22, + 0x1d, 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x2f, 0x67, 0x65, 0x74, + 0x5f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x5e, + 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x12, 0x12, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x1d, 0x3a, 0x01, 0x2a, 0x22, 0x18, 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x61, 0x75, 0x74, + 0x68, 0x2f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x4a, + 0x0a, 0x08, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x0c, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0d, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6f, + 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x3a, + 0x01, 0x2a, 0x22, 0x16, 0x2f, 0x71, 0x67, 0x64, 0x7a, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, + 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, 0x69, 0x61, 0x2f, 0x6d, 0x6d, 0x6f, 0x72, + 0x70, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x73, 0x2f, 0x72, 0x73, 0x70, 0x62, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1526,7 +1836,7 @@ func file_service_qgdzs_proto_rawDescGZIP() []byte { return file_service_qgdzs_proto_rawDescData } -var file_service_qgdzs_proto_msgTypes = make([]protoimpl.MessageInfo, 22) +var file_service_qgdzs_proto_msgTypes = make([]protoimpl.MessageInfo, 27) var file_service_qgdzs_proto_goTypes = []interface{}{ (*GenerateQuestionReq)(nil), // 0: GenerateQuestionReq (*GenerateQuestionResp)(nil), // 1: GenerateQuestionResp @@ -1550,35 +1860,45 @@ var file_service_qgdzs_proto_goTypes = []interface{}{ (*GetRecordItem)(nil), // 19: GetRecordItem (*GetQuestionInfoReq)(nil), // 20: GetQuestionInfoReq (*GetQuestionInfoResp)(nil), // 21: GetQuestionInfoResp + (*GetPointRecordReq)(nil), // 22: GetPointRecordReq + (*GetPointRecordResp)(nil), // 23: GetPointRecordResp + (*GetPointRecordItem)(nil), // 24: GetPointRecordItem + (*GetPointReq)(nil), // 25: GetPointReq + (*GetPointResp)(nil), // 26: GetPointResp } var file_service_qgdzs_proto_depIdxs = []int32{ 8, // 0: GetAllCategoryResp.Categories:type_name -> GetAllCategoryItem 19, // 1: GetRecordResp.Records:type_name -> GetRecordItem - 0, // 2: Qgdzs.GenerateQuestion:input_type -> GenerateQuestionReq - 2, // 3: Qgdzs.RandomGetQuestion:input_type -> RandomGetQuestionReq - 4, // 4: Qgdzs.RandomAnswerQuestion:input_type -> RandomAnswerQuestionReq - 6, // 5: Qgdzs.GetAllCategory:input_type -> GetAllCategoryReq - 9, // 6: Qgdzs.CategoryGetQuestion:input_type -> CategoryGetQuestionReq - 11, // 7: Qgdzs.CategoryAnswerQuestion:input_type -> CategoryAnswerQuestionReq - 13, // 8: Qgdzs.QuicklyGetQuestion:input_type -> QuicklyGetQuestionReq - 15, // 9: Qgdzs.QuicklyAnswerQuestion:input_type -> QuicklyAnswerQuestionReq - 17, // 10: Qgdzs.GetRecord:input_type -> GetRecordReq - 20, // 11: Qgdzs.GetQuestionInfo:input_type -> GetQuestionInfoReq - 1, // 12: Qgdzs.GenerateQuestion:output_type -> GenerateQuestionResp - 3, // 13: Qgdzs.RandomGetQuestion:output_type -> RandomGetQuestionResp - 5, // 14: Qgdzs.RandomAnswerQuestion:output_type -> RandomAnswerQuestionResp - 7, // 15: Qgdzs.GetAllCategory:output_type -> GetAllCategoryResp - 10, // 16: Qgdzs.CategoryGetQuestion:output_type -> CategoryGetQuestionResp - 12, // 17: Qgdzs.CategoryAnswerQuestion:output_type -> CategoryAnswerQuestionResp - 14, // 18: Qgdzs.QuicklyGetQuestion:output_type -> QuicklyGetQuestionResp - 16, // 19: Qgdzs.QuicklyAnswerQuestion:output_type -> QuicklyAnswerQuestionResp - 18, // 20: Qgdzs.GetRecord:output_type -> GetRecordResp - 21, // 21: Qgdzs.GetQuestionInfo:output_type -> GetQuestionInfoResp - 12, // [12:22] is the sub-list for method output_type - 2, // [2:12] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name + 24, // 2: GetPointRecordResp.Records:type_name -> GetPointRecordItem + 0, // 3: Qgdzs.GenerateQuestion:input_type -> GenerateQuestionReq + 2, // 4: Qgdzs.RandomGetQuestion:input_type -> RandomGetQuestionReq + 4, // 5: Qgdzs.RandomAnswerQuestion:input_type -> RandomAnswerQuestionReq + 6, // 6: Qgdzs.GetAllCategory:input_type -> GetAllCategoryReq + 9, // 7: Qgdzs.CategoryGetQuestion:input_type -> CategoryGetQuestionReq + 11, // 8: Qgdzs.CategoryAnswerQuestion:input_type -> CategoryAnswerQuestionReq + 13, // 9: Qgdzs.QuicklyGetQuestion:input_type -> QuicklyGetQuestionReq + 15, // 10: Qgdzs.QuicklyAnswerQuestion:input_type -> QuicklyAnswerQuestionReq + 17, // 11: Qgdzs.GetRecord:input_type -> GetRecordReq + 20, // 12: Qgdzs.GetQuestionInfo:input_type -> GetQuestionInfoReq + 22, // 13: Qgdzs.GetPointRecord:input_type -> GetPointRecordReq + 25, // 14: Qgdzs.GetPoint:input_type -> GetPointReq + 1, // 15: Qgdzs.GenerateQuestion:output_type -> GenerateQuestionResp + 3, // 16: Qgdzs.RandomGetQuestion:output_type -> RandomGetQuestionResp + 5, // 17: Qgdzs.RandomAnswerQuestion:output_type -> RandomAnswerQuestionResp + 7, // 18: Qgdzs.GetAllCategory:output_type -> GetAllCategoryResp + 10, // 19: Qgdzs.CategoryGetQuestion:output_type -> CategoryGetQuestionResp + 12, // 20: Qgdzs.CategoryAnswerQuestion:output_type -> CategoryAnswerQuestionResp + 14, // 21: Qgdzs.QuicklyGetQuestion:output_type -> QuicklyGetQuestionResp + 16, // 22: Qgdzs.QuicklyAnswerQuestion:output_type -> QuicklyAnswerQuestionResp + 18, // 23: Qgdzs.GetRecord:output_type -> GetRecordResp + 21, // 24: Qgdzs.GetQuestionInfo:output_type -> GetQuestionInfoResp + 23, // 25: Qgdzs.GetPointRecord:output_type -> GetPointRecordResp + 26, // 26: Qgdzs.GetPoint:output_type -> GetPointResp + 15, // [15:27] is the sub-list for method output_type + 3, // [3:15] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name } func init() { file_service_qgdzs_proto_init() } @@ -1851,6 +2171,66 @@ func file_service_qgdzs_proto_init() { return nil } } + file_service_qgdzs_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPointRecordReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_qgdzs_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPointRecordResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_qgdzs_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPointRecordItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_qgdzs_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPointReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_qgdzs_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPointResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -1858,7 +2238,7 @@ func file_service_qgdzs_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_service_qgdzs_proto_rawDesc, NumEnums: 0, - NumMessages: 22, + NumMessages: 27, NumExtensions: 0, NumServices: 1, }, diff --git a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_qgdzs.pb.gw.go b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_qgdzs.pb.gw.go similarity index 84% rename from Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_qgdzs.pb.gw.go rename to Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_qgdzs.pb.gw.go index 184dfa9..abb592f 100644 --- a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_qgdzs.pb.gw.go +++ b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_qgdzs.pb.gw.go @@ -2,11 +2,11 @@ // source: service_qgdzs.proto /* -Package grpc_pb is a reverse proxy. +Package rspb is a reverse proxy. It translates gRPC into RESTful JSON APIs. */ -package grpc_pb +package rspb import ( "context" @@ -275,6 +275,54 @@ func local_request_Qgdzs_GetQuestionInfo_0(ctx context.Context, marshaler runtim return msg, metadata, err } +func request_Qgdzs_GetPointRecord_0(ctx context.Context, marshaler runtime.Marshaler, client QgdzsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq GetPointRecordReq + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.GetPointRecord(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err +} + +func local_request_Qgdzs_GetPointRecord_0(ctx context.Context, marshaler runtime.Marshaler, server QgdzsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq GetPointRecordReq + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.GetPointRecord(ctx, &protoReq) + return msg, metadata, err +} + +func request_Qgdzs_GetPoint_0(ctx context.Context, marshaler runtime.Marshaler, client QgdzsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq GetPointReq + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.GetPoint(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err +} + +func local_request_Qgdzs_GetPoint_0(ctx context.Context, marshaler runtime.Marshaler, server QgdzsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq GetPointReq + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.GetPoint(ctx, &protoReq) + return msg, metadata, err +} + // RegisterQgdzsHandlerServer registers the http handlers for service Qgdzs to "mux". // UnaryRPC :call QgdzsServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -481,6 +529,46 @@ func RegisterQgdzsHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Qgdzs_GetQuestionInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) + mux.Handle(http.MethodPost, pattern_Qgdzs_GetPointRecord_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/.Qgdzs/GetPointRecord", runtime.WithHTTPPathPattern("/qgdzs/auth/point/record")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Qgdzs_GetPointRecord_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_Qgdzs_GetPointRecord_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodPost, pattern_Qgdzs_GetPoint_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/.Qgdzs/GetPoint", runtime.WithHTTPPathPattern("/qgdzs/auth/point/info")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Qgdzs_GetPoint_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_Qgdzs_GetPoint_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } @@ -691,6 +779,40 @@ func RegisterQgdzsHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Qgdzs_GetQuestionInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) + mux.Handle(http.MethodPost, pattern_Qgdzs_GetPointRecord_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/.Qgdzs/GetPointRecord", runtime.WithHTTPPathPattern("/qgdzs/auth/point/record")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Qgdzs_GetPointRecord_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_Qgdzs_GetPointRecord_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodPost, pattern_Qgdzs_GetPoint_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/.Qgdzs/GetPoint", runtime.WithHTTPPathPattern("/qgdzs/auth/point/info")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Qgdzs_GetPoint_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_Qgdzs_GetPoint_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } @@ -705,6 +827,8 @@ var ( pattern_Qgdzs_QuicklyAnswerQuestion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"qgdzs", "open", "quickly", "answer"}, "")) pattern_Qgdzs_GetRecord_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"qgdzs", "auth", "get_record"}, "")) pattern_Qgdzs_GetQuestionInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"qgdzs", "open", "get_question_info"}, "")) + pattern_Qgdzs_GetPointRecord_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"qgdzs", "auth", "point", "record"}, "")) + pattern_Qgdzs_GetPoint_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"qgdzs", "auth", "point", "info"}, "")) ) var ( @@ -718,4 +842,6 @@ var ( forward_Qgdzs_QuicklyAnswerQuestion_0 = runtime.ForwardResponseMessage forward_Qgdzs_GetRecord_0 = runtime.ForwardResponseMessage forward_Qgdzs_GetQuestionInfo_0 = runtime.ForwardResponseMessage + forward_Qgdzs_GetPointRecord_0 = runtime.ForwardResponseMessage + forward_Qgdzs_GetPoint_0 = runtime.ForwardResponseMessage ) diff --git a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_qgdzs_grpc.pb.go b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_qgdzs_grpc.pb.go similarity index 85% rename from Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_qgdzs_grpc.pb.go rename to Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_qgdzs_grpc.pb.go index e548fcc..d65f0ff 100644 --- a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_qgdzs_grpc.pb.go +++ b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_qgdzs_grpc.pb.go @@ -4,7 +4,7 @@ // - protoc v4.25.1 // source: service_qgdzs.proto -package grpc_pb +package rspb import ( context "context" @@ -46,6 +46,11 @@ type QgdzsClient interface { GetRecord(ctx context.Context, in *GetRecordReq, opts ...grpc.CallOption) (*GetRecordResp, error) // 获取具体的题目 GetQuestionInfo(ctx context.Context, in *GetQuestionInfoReq, opts ...grpc.CallOption) (*GetQuestionInfoResp, error) + // ---------- 学识分 ---------- + // 获取学识分获取记录 + GetPointRecord(ctx context.Context, in *GetPointRecordReq, opts ...grpc.CallOption) (*GetPointRecordResp, error) + // 获取学识分 + GetPoint(ctx context.Context, in *GetPointReq, opts ...grpc.CallOption) (*GetPointResp, error) } type qgdzsClient struct { @@ -146,6 +151,24 @@ func (c *qgdzsClient) GetQuestionInfo(ctx context.Context, in *GetQuestionInfoRe return out, nil } +func (c *qgdzsClient) GetPointRecord(ctx context.Context, in *GetPointRecordReq, opts ...grpc.CallOption) (*GetPointRecordResp, error) { + out := new(GetPointRecordResp) + err := c.cc.Invoke(ctx, "/Qgdzs/GetPointRecord", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *qgdzsClient) GetPoint(ctx context.Context, in *GetPointReq, opts ...grpc.CallOption) (*GetPointResp, error) { + out := new(GetPointResp) + err := c.cc.Invoke(ctx, "/Qgdzs/GetPoint", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QgdzsServer is the server API for Qgdzs service. // All implementations must embed UnimplementedQgdzsServer // for forward compatibility @@ -174,6 +197,11 @@ type QgdzsServer interface { GetRecord(context.Context, *GetRecordReq) (*GetRecordResp, error) // 获取具体的题目 GetQuestionInfo(context.Context, *GetQuestionInfoReq) (*GetQuestionInfoResp, error) + // ---------- 学识分 ---------- + // 获取学识分获取记录 + GetPointRecord(context.Context, *GetPointRecordReq) (*GetPointRecordResp, error) + // 获取学识分 + GetPoint(context.Context, *GetPointReq) (*GetPointResp, error) mustEmbedUnimplementedQgdzsServer() } @@ -211,6 +239,12 @@ func (UnimplementedQgdzsServer) GetRecord(context.Context, *GetRecordReq) (*GetR func (UnimplementedQgdzsServer) GetQuestionInfo(context.Context, *GetQuestionInfoReq) (*GetQuestionInfoResp, error) { return nil, status.Errorf(codes.Unimplemented, "method GetQuestionInfo not implemented") } +func (UnimplementedQgdzsServer) GetPointRecord(context.Context, *GetPointRecordReq) (*GetPointRecordResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPointRecord not implemented") +} +func (UnimplementedQgdzsServer) GetPoint(context.Context, *GetPointReq) (*GetPointResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPoint not implemented") +} func (UnimplementedQgdzsServer) mustEmbedUnimplementedQgdzsServer() {} // UnsafeQgdzsServer may be embedded to opt out of forward compatibility for this service. @@ -404,6 +438,42 @@ func _Qgdzs_GetQuestionInfo_Handler(srv interface{}, ctx context.Context, dec fu return interceptor(ctx, in, info, handler) } +func _Qgdzs_GetPointRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPointRecordReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QgdzsServer).GetPointRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/Qgdzs/GetPointRecord", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QgdzsServer).GetPointRecord(ctx, req.(*GetPointRecordReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Qgdzs_GetPoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPointReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QgdzsServer).GetPoint(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/Qgdzs/GetPoint", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QgdzsServer).GetPoint(ctx, req.(*GetPointReq)) + } + return interceptor(ctx, in, info, handler) +} + // Qgdzs_ServiceDesc is the grpc.ServiceDesc for Qgdzs service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -451,6 +521,14 @@ var Qgdzs_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetQuestionInfo", Handler: _Qgdzs_GetQuestionInfo_Handler, }, + { + MethodName: "GetPointRecord", + Handler: _Qgdzs_GetPointRecord_Handler, + }, + { + MethodName: "GetPoint", + Handler: _Qgdzs_GetPoint_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "service_qgdzs.proto", diff --git a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_scene.pb.go b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_scene.pb.go similarity index 98% rename from Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_scene.pb.go rename to Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_scene.pb.go index cfdc7cf..505bc12 100644 --- a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_scene.pb.go +++ b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_scene.pb.go @@ -4,10 +4,10 @@ // protoc v4.25.1 // source: service_scene.proto -package grpc_pb +package rspb import ( - _ "git.hlsq.asia/mmorpg/service-common/proto/rs/rs_common" + _ "git.hlsq.asia/mmorpg/service-common/proto/rs/rscommon" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -414,10 +414,10 @@ var file_service_scene_proto_rawDesc = []byte{ 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x25, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x0b, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x28, 0x01, - 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, 0x69, + 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, 0x69, 0x61, 0x2f, 0x6d, 0x6d, 0x6f, 0x72, 0x70, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x73, - 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2f, 0x72, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_scene_grpc.pb.go b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_scene_grpc.pb.go similarity index 99% rename from Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_scene_grpc.pb.go rename to Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_scene_grpc.pb.go index b2063a3..6cff46d 100644 --- a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_scene_grpc.pb.go +++ b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_scene_grpc.pb.go @@ -4,7 +4,7 @@ // - protoc v4.25.1 // source: service_scene.proto -package grpc_pb +package rspb import ( context "context" diff --git a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_user.pb.go b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_user.pb.go similarity index 98% rename from Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_user.pb.go rename to Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_user.pb.go index 6d3ee23..dbcc5e1 100644 --- a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_user.pb.go +++ b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_user.pb.go @@ -4,10 +4,10 @@ // protoc v4.25.1 // source: service_user.proto -package grpc_pb +package rspb import ( - _ "git.hlsq.asia/mmorpg/service-common/proto/rs/rs_common" + _ "git.hlsq.asia/mmorpg/service-common/proto/rs/rscommon" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -376,11 +376,11 @@ var file_service_user_proto_rawDesc = []byte{ 0x0f, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x3a, 0x01, 0x2a, 0x22, 0x0f, 0x2f, - 0x75, 0x73, 0x65, 0x72, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x42, 0x36, - 0x5a, 0x34, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, 0x69, 0x61, 0x2f, + 0x75, 0x73, 0x65, 0x72, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x42, 0x33, + 0x5a, 0x31, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, 0x69, 0x61, 0x2f, 0x6d, 0x6d, 0x6f, 0x72, 0x70, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x73, 0x2f, 0x67, - 0x72, 0x70, 0x63, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x73, 0x2f, 0x72, + 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_user.pb.gw.go b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_user.pb.gw.go similarity index 99% rename from Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_user.pb.gw.go rename to Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_user.pb.gw.go index 9750494..94e8ae8 100644 --- a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_user.pb.gw.go +++ b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_user.pb.gw.go @@ -2,11 +2,11 @@ // source: service_user.proto /* -Package grpc_pb is a reverse proxy. +Package rspb is a reverse proxy. It translates gRPC into RESTful JSON APIs. */ -package grpc_pb +package rspb import ( "context" diff --git a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_user_grpc.pb.go b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_user_grpc.pb.go similarity index 99% rename from Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_user_grpc.pb.go rename to Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_user_grpc.pb.go index 6f50570..558be90 100644 --- a/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb/service_user_grpc.pb.go +++ b/Proto/RpcServer/gen/git.hlsq.asia/mmorpg/service-common/proto/rs/rspb/service_user_grpc.pb.go @@ -4,7 +4,7 @@ // - protoc v4.25.1 // source: service_user.proto -package grpc_pb +package rspb import ( context "context" diff --git a/Proto/RpcServer/sources/rs_common.proto b/Proto/RpcServer/sources/rs_common.proto index c674ecb..73574de 100644 --- a/Proto/RpcServer/sources/rs_common.proto +++ b/Proto/RpcServer/sources/rs_common.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "git.hlsq.asia/mmorpg/service-common/proto/rs/rs_common"; +option go_package = "git.hlsq.asia/mmorpg/service-common/proto/rs/rscommon"; message ErrorInfo { int32 Code = 1; diff --git a/Proto/RpcServer/sources/service_gateway.proto b/Proto/RpcServer/sources/service_gateway.proto index a96a266..8b1ab77 100644 --- a/Proto/RpcServer/sources/service_gateway.proto +++ b/Proto/RpcServer/sources/service_gateway.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb"; +option go_package = "git.hlsq.asia/mmorpg/service-common/proto/rs/rspb"; import "rs_common.proto"; service Gateway { diff --git a/Proto/RpcServer/sources/service_qgdzs.proto b/Proto/RpcServer/sources/service_qgdzs.proto index 760e093..65c35a3 100644 --- a/Proto/RpcServer/sources/service_qgdzs.proto +++ b/Proto/RpcServer/sources/service_qgdzs.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb"; +option go_package = "git.hlsq.asia/mmorpg/service-common/proto/rs/rspb"; import "rs_common.proto"; import "google/api/annotations.proto"; @@ -33,6 +33,12 @@ service Qgdzs { rpc GetRecord(GetRecordReq) returns (GetRecordResp) {option (google.api.http) = {post: "/qgdzs/auth/get_record" body: "*"};} // 获取具体的题目 rpc GetQuestionInfo(GetQuestionInfoReq) returns (GetQuestionInfoResp) {option (google.api.http) = {post: "/qgdzs/open/get_question_info" body: "*"};} + + // ---------- 学识分 ---------- + // 获取学识分获取记录 + rpc GetPointRecord(GetPointRecordReq) returns (GetPointRecordResp) {option (google.api.http) = {post: "/qgdzs/auth/point/record" body: "*"};} + // 获取学识分 + rpc GetPoint(GetPointReq) returns (GetPointResp) {option (google.api.http) = {post: "/qgdzs/auth/point/info" body: "*"};} } // ---------- GenerateQuestion ---------- @@ -150,4 +156,28 @@ message GetQuestionInfoResp { string Category = 3 [json_name = "category"]; // 类目 int32 Difficulty = 4 [json_name = "difficulty"]; // 难度 string Explanation = 5 [json_name = "explanation"]; // 解析 +} + +// ---------- GetPointRecord ---------- +message GetPointRecordReq { + int64 USN = 1 [json_name = "usn"]; + int32 Page = 2 [json_name = "page"]; + int32 PageSize = 3 [json_name = "page_size"]; +} +message GetPointRecordResp { + int32 Count = 1 [json_name = "count"]; // 总数 + repeated GetPointRecordItem Records = 2 [json_name = "records"]; // 记录 +} +message GetPointRecordItem { + int32 Source = 1 [json_name = "source"]; // 来源 + int64 Point = 2 [json_name = "point"]; // 学识分 + int64 CreateTime = 3 [json_name = "create_time"]; // 创建时间 +} + +// ---------- GetPoint ---------- +message GetPointReq { + int64 USN = 1 [json_name = "usn"]; +} +message GetPointResp { + int64 Point = 1 [json_name = "point"]; // 学识分 } \ No newline at end of file diff --git a/Proto/RpcServer/sources/service_scene.proto b/Proto/RpcServer/sources/service_scene.proto index 20aa026..81583a7 100644 --- a/Proto/RpcServer/sources/service_scene.proto +++ b/Proto/RpcServer/sources/service_scene.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb"; +option go_package = "git.hlsq.asia/mmorpg/service-common/proto/rs/rspb"; import "rs_common.proto"; service Scene { diff --git a/Proto/RpcServer/sources/service_user.proto b/Proto/RpcServer/sources/service_user.proto index 4e18f74..901519f 100644 --- a/Proto/RpcServer/sources/service_user.proto +++ b/Proto/RpcServer/sources/service_user.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb"; +option go_package = "git.hlsq.asia/mmorpg/service-common/proto/rs/rspb"; import "rs_common.proto"; import "google/api/annotations.proto"; diff --git a/Proto/SocketServer/gen/client/Action.cs b/Proto/SocketServer/gen/client/Action.cs index 65919c0..b896234 100644 --- a/Proto/SocketServer/gen/client/Action.cs +++ b/Proto/SocketServer/gen/client/Action.cs @@ -31,8 +31,8 @@ public static partial class ActionReflection { "IAEoAxIJCgFYGAIgASgREgkKAVkYAyABKBEiKwoMUzJDX1Bvc2l0aW9uEhsK", "BEluZm8YASADKAsyDS5Qb3NpdGlvbkluZm8qSwoIQWN0aW9uSUQSFQoRQUNU", "SU9OX0lEX0lOVkFMSUQQABISCg5BQ1RJT05fSURfTU9WRRABEhQKEEFDVElP", - "Tl9JRF9BVFRBQ0sQAkI0WjJnaXQuaGxzcS5hc2lhL21tb3JwZy9zZXJ2aWNl", - "LWNvbW1vbi9wcm90by9zcy9zc19wYmIGcHJvdG8z")); + "Tl9JRF9BVFRBQ0sQAkIzWjFnaXQuaGxzcS5hc2lhL21tb3JwZy9zZXJ2aWNl", + "LWNvbW1vbi9wcm90by9zcy9zc3BiYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::SsCommonReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ActionID), }, null, new pbr::GeneratedClrTypeInfo[] { diff --git a/Proto/SocketServer/gen/client/Define.cs b/Proto/SocketServer/gen/client/Define.cs index af9e5b4..1c7d113 100644 --- a/Proto/SocketServer/gen/client/Define.cs +++ b/Proto/SocketServer/gen/client/Define.cs @@ -28,8 +28,8 @@ public static partial class DefineReflection { "X0tJQ0tfT1VUEAESFwoTTUVTU0FHRV9JRF9RVUVVRV9VUBACEhwKGE1FU1NB", "R0VfSURfTE9HSU5fU1VDQ0VTUxADEh0KGU1FU1NBR0VfSURfRU5URVJfSU5T", "VEFOQ0UQZRIVChFNRVNTQUdFX0lEX0FDVElPThBmEhcKE01FU1NBR0VfSURf", - "UE9TSVRJT04QZ0I0WjJnaXQuaGxzcS5hc2lhL21tb3JwZy9zZXJ2aWNlLWNv", - "bW1vbi9wcm90by9zcy9zc19wYmIGcHJvdG8z")); + "UE9TSVRJT04QZ0IzWjFnaXQuaGxzcS5hc2lhL21tb3JwZy9zZXJ2aWNlLWNv", + "bW1vbi9wcm90by9zcy9zc3BiYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::SsCommonReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::MessageID), }, null, new pbr::GeneratedClrTypeInfo[] { diff --git a/Proto/SocketServer/gen/client/Service.cs b/Proto/SocketServer/gen/client/Service.cs index 1afb2f4..2a4082a 100644 --- a/Proto/SocketServer/gen/client/Service.cs +++ b/Proto/SocketServer/gen/client/Service.cs @@ -29,8 +29,8 @@ public static partial class ServiceReflection { "VkFMSUQQABIfChtLSUNLX09VVF9JRF9EVVBMSUNBVEVfTE9HSU4QARIbChdL", "SUNLX09VVF9JRF9TRVJWRVJfQlVTWRACEhwKGEtJQ0tfT1VUX0lEX1NFUlZF", "Ul9DTE9TRRADEh0KGUtJQ0tfT1VUX0lEX1FVRVVFX1VQX0ZVTEwQBBIdChlL", - "SUNLX09VVF9JRF9UT0tFTl9JTlZBTElEEAVCNFoyZ2l0Lmhsc3EuYXNpYS9t", - "bW9ycGcvc2VydmljZS1jb21tb24vcHJvdG8vc3Mvc3NfcGJiBnByb3RvMw==")); + "SUNLX09VVF9JRF9UT0tFTl9JTlZBTElEEAVCM1oxZ2l0Lmhsc3EuYXNpYS9t", + "bW9ycGcvc2VydmljZS1jb21tb24vcHJvdG8vc3Mvc3NwYmIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::SsCommonReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::KickOutID), }, null, new pbr::GeneratedClrTypeInfo[] { diff --git a/Proto/SocketServer/gen/client/SsCommon.cs b/Proto/SocketServer/gen/client/SsCommon.cs index f57700c..67b13a1 100644 --- a/Proto/SocketServer/gen/client/SsCommon.cs +++ b/Proto/SocketServer/gen/client/SsCommon.cs @@ -22,8 +22,8 @@ public static partial class SsCommonReflection { static SsCommonReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Cg9zc19jb21tb24ucHJvdG9COFo2Z2l0Lmhsc3EuYXNpYS9tbW9ycGcvc2Vy", - "dmljZS1jb21tb24vcHJvdG8vc3Mvc3NfY29tbW9uYgZwcm90bzM=")); + "Cg9zc19jb21tb24ucHJvdG9CN1o1Z2l0Lmhsc3EuYXNpYS9tbW9ycGcvc2Vy", + "dmljZS1jb21tb24vcHJvdG8vc3Mvc3Njb21tb25iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, null)); diff --git a/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/ss_common/ss_common.pb.go b/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/sscommon/ss_common.pb.go similarity index 90% rename from Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/ss_common/ss_common.pb.go rename to Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/sscommon/ss_common.pb.go index 28b12a8..45e91d4 100644 --- a/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/ss_common/ss_common.pb.go +++ b/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/sscommon/ss_common.pb.go @@ -4,7 +4,7 @@ // protoc v4.25.1 // source: ss_common.proto -package ss_common +package sscommon import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -23,11 +23,11 @@ var File_ss_common_proto protoreflect.FileDescriptor var file_ss_common_proto_rawDesc = []byte{ 0x0a, 0x0f, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, + 0x6f, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, 0x69, 0x61, 0x2f, 0x6d, 0x6d, 0x6f, 0x72, 0x70, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, - 0x73, 0x2f, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x73, 0x2f, 0x73, 0x73, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var file_ss_common_proto_goTypes = []interface{}{} diff --git a/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb/action.pb.go b/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/sspb/action.pb.go similarity index 98% rename from Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb/action.pb.go rename to Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/sspb/action.pb.go index c80ae92..a9aaa18 100644 --- a/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb/action.pb.go +++ b/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/sspb/action.pb.go @@ -4,10 +4,10 @@ // protoc v4.25.1 // source: action.proto -package ss_pb +package sspb import ( - _ "git.hlsq.asia/mmorpg/service-common/proto/ss/ss_common" + _ "git.hlsq.asia/mmorpg/service-common/proto/ss/sscommon" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -398,11 +398,11 @@ var file_action_proto_rawDesc = []byte{ 0x4e, 0x5f, 0x49, 0x44, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x44, 0x5f, 0x4d, 0x4f, 0x56, 0x45, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x44, 0x5f, - 0x41, 0x54, 0x54, 0x41, 0x43, 0x4b, 0x10, 0x02, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x2e, + 0x41, 0x54, 0x54, 0x41, 0x43, 0x4b, 0x10, 0x02, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, 0x69, 0x61, 0x2f, 0x6d, 0x6d, 0x6f, 0x72, 0x70, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x73, 0x2f, 0x73, 0x73, 0x5f, 0x70, 0x62, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x73, 0x2f, 0x73, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb/define.pb.go b/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/sspb/define.pb.go similarity index 96% rename from Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb/define.pb.go rename to Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/sspb/define.pb.go index 36fb014..76071f2 100644 --- a/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb/define.pb.go +++ b/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/sspb/define.pb.go @@ -4,10 +4,10 @@ // protoc v4.25.1 // source: define.proto -package ss_pb +package sspb import ( - _ "git.hlsq.asia/mmorpg/service-common/proto/ss/ss_common" + _ "git.hlsq.asia/mmorpg/service-common/proto/ss/sscommon" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -158,11 +158,11 @@ var file_define_proto_rawDesc = []byte{ 0x4e, 0x43, 0x45, 0x10, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x49, 0x44, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x66, 0x12, 0x17, 0x0a, 0x13, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x49, 0x44, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, - 0x49, 0x4f, 0x4e, 0x10, 0x67, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, + 0x49, 0x4f, 0x4e, 0x10, 0x67, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, 0x69, 0x61, 0x2f, 0x6d, 0x6d, 0x6f, 0x72, 0x70, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x73, 0x73, 0x2f, 0x73, 0x73, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x74, 0x6f, 0x2f, 0x73, 0x73, 0x2f, 0x73, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( diff --git a/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb/service.pb.go b/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/sspb/service.pb.go similarity index 97% rename from Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb/service.pb.go rename to Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/sspb/service.pb.go index 49d5397..f073ced 100644 --- a/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb/service.pb.go +++ b/Proto/SocketServer/gen/git.hlsq.asia/mmorpg/service-common/proto/ss/sspb/service.pb.go @@ -4,10 +4,10 @@ // protoc v4.25.1 // source: service.proto -package ss_pb +package sspb import ( - _ "git.hlsq.asia/mmorpg/service-common/proto/ss/ss_common" + _ "git.hlsq.asia/mmorpg/service-common/proto/ss/sscommon" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -249,11 +249,10 @@ var file_service_proto_rawDesc = []byte{ 0x54, 0x5f, 0x49, 0x44, 0x5f, 0x51, 0x55, 0x45, 0x55, 0x45, 0x5f, 0x55, 0x50, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x04, 0x12, 0x1d, 0x0a, 0x19, 0x4b, 0x49, 0x43, 0x4b, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x49, 0x44, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, - 0x44, 0x10, 0x05, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, + 0x44, 0x10, 0x05, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x2e, 0x68, 0x6c, 0x73, 0x71, 0x2e, 0x61, 0x73, 0x69, 0x61, 0x2f, 0x6d, 0x6d, 0x6f, 0x72, 0x70, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2f, 0x73, 0x73, 0x2f, 0x73, 0x73, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x2f, 0x73, 0x73, 0x2f, 0x73, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/Proto/SocketServer/sources/action.proto b/Proto/SocketServer/sources/action.proto index c3ee87d..35f5b16 100644 --- a/Proto/SocketServer/sources/action.proto +++ b/Proto/SocketServer/sources/action.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb"; +option go_package = "git.hlsq.asia/mmorpg/service-common/proto/ss/sspb"; import "ss_common.proto"; // MESSAGE_ID_ENTER_INSTANCE diff --git a/Proto/SocketServer/sources/define.proto b/Proto/SocketServer/sources/define.proto index 8d9e991..179e21e 100644 --- a/Proto/SocketServer/sources/define.proto +++ b/Proto/SocketServer/sources/define.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb"; +option go_package = "git.hlsq.asia/mmorpg/service-common/proto/ss/sspb"; import "ss_common.proto"; enum MessageID { diff --git a/Proto/SocketServer/sources/service.proto b/Proto/SocketServer/sources/service.proto index f13ce2c..100053b 100644 --- a/Proto/SocketServer/sources/service.proto +++ b/Proto/SocketServer/sources/service.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb"; +option go_package = "git.hlsq.asia/mmorpg/service-common/proto/ss/sspb"; import "ss_common.proto"; // MESSAGE_ID_KICK_OUT diff --git a/Proto/SocketServer/sources/ss_common.proto b/Proto/SocketServer/sources/ss_common.proto index 40ea943..140344c 100644 --- a/Proto/SocketServer/sources/ss_common.proto +++ b/Proto/SocketServer/sources/ss_common.proto @@ -1,3 +1,3 @@ syntax = "proto3"; -option go_package = "git.hlsq.asia/mmorpg/service-common/proto/ss/ss_common"; \ No newline at end of file +option go_package = "git.hlsq.asia/mmorpg/service-common/proto/ss/sscommon"; \ No newline at end of file diff --git a/Publish/doc.txt b/Publish/doc.txt index 4a91c4f..554d03b 100644 --- a/Publish/doc.txt +++ b/Publish/doc.txt @@ -62,7 +62,7 @@ ssh-keygen -t rsa -b 4096 -C "jenkins-to-aliyun" -f ~/.ssh/jenkins -N "" ssh-copy-id root@47.108.184.184 生成mock代码 -mockgen -source ./proto/rs/grpc_pb/service_user_grpc.pb.go -destination ./proto/rs/grpc_pb/mocks/service_user_grpc.pb.go -package mocks +mockgen -source ./proto/rs/rspb/service_user_grpc.pb.go -destination ./proto/rs/rspb/mocks/service_user_grpc.pb.go -package mocks 交叉编译: sudo docker run --rm --privileged tonistiigi/binfmt --install all diff --git a/Tools/quickly/.trae/rules/project_rules.md b/Tools/quickly/.trae/rules/project_rules.md new file mode 100644 index 0000000..be4b956 --- /dev/null +++ b/Tools/quickly/.trae/rules/project_rules.md @@ -0,0 +1,4 @@ +1. 本项目是用Wails构建的 +2. 务必保证代码可维护性,做好模块划分 +3. 不要过度理解需求,尽量保持需求的简单性 +4. 保持最小修改,不要大刀阔斧的改动代码 \ No newline at end of file diff --git a/Tools/quickly/backend/settings.go b/Tools/quickly/backend/settings.go index e34c3b9..d72813a 100644 --- a/Tools/quickly/backend/settings.go +++ b/Tools/quickly/backend/settings.go @@ -8,15 +8,12 @@ import ( ) func (a *App) getSettingsPath() (string, error) { - configDir, err := os.UserConfigDir() + execPath, err := os.Executable() if err != nil { return "", err } - appConfigDir := filepath.Join(configDir, "quickly") - if err := os.MkdirAll(appConfigDir, 0755); err != nil { - return "", err - } - return filepath.Join(appConfigDir, "settings.json"), nil + execDir := filepath.Dir(execPath) + return filepath.Join(execDir, "settings.json"), nil } func (a *App) loadSettings() { diff --git a/Tools/quickly/frontend/package.json.md5 b/Tools/quickly/frontend/package.json.md5 index 48c36cc..9c06045 100644 --- a/Tools/quickly/frontend/package.json.md5 +++ b/Tools/quickly/frontend/package.json.md5 @@ -1 +1 @@ -12a2c8ac492a939e7178bbd4f4e7ce00 \ No newline at end of file +27251dcea746309433392e41407ed6c9 \ No newline at end of file