WH01243 il y a 2 ans
Parent
commit
42fbce6adc

+ 1 - 1
rpc/codeservice/codeService.proto

@@ -1,7 +1,7 @@
 syntax = "proto3";
 
 package codeservice;
-option go_package = "./pb";
+option go_package = "./codeservice";
 
 message Request {
 }

+ 1 - 1
rpc/codeservice/codeservice.go

@@ -1,7 +1,7 @@
 package main
 
 import (
-	codeservice "bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/pb"
+	"bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/codeservice"
 	"flag"
 	"fmt"
 

+ 3 - 3
rpc/codeservice/pb/codeService.pb.go → rpc/codeservice/codeservice/codeService.pb.go

@@ -4,7 +4,7 @@
 // 	protoc        v3.15.1
 // source: codeService.proto
 
-package pb
+package codeservice
 
 import (
 	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
@@ -259,8 +259,8 @@ var file_codeService_proto_rawDesc = []byte{
 	0x73, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x2e, 0x63, 0x6f, 0x64,
 	0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
 	0x1a, 0x15, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52,
-	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62,
-	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x2f, 0x63, 0x6f, 0x64,
+	0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (

+ 1 - 1
rpc/codeservice/pb/codeService_grpc.pb.go → rpc/codeservice/codeservice/codeService_grpc.pb.go

@@ -4,7 +4,7 @@
 // - protoc             v3.15.1
 // source: codeService.proto
 
-package pb
+package codeservice
 
 import (
 	context "context"

+ 1 - 1
rpc/codeservice/init/pushmapping.go

@@ -3,7 +3,7 @@ package init
 import (
 	util "app.yhyue.com/moapp/jybase/common"
 	"app.yhyue.com/moapp/jybase/mysql"
-	codeservice "bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/pb"
+	"bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/codeservice"
 	"fmt"
 	"log"
 )

+ 1 - 1
rpc/codeservice/internal/logic/codetransformationlogic.go

@@ -4,8 +4,8 @@ import (
 	IC "bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/init"
 	"context"
 
+	"bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/codeservice"
 	"bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/internal/svc"
-	codeservice "bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/pb"
 
 	"github.com/zeromicro/go-zero/core/logx"
 )

+ 3 - 3
rpc/codeservice/internal/server/codeserviceserver.go

@@ -6,14 +6,14 @@ package server
 import (
 	"context"
 
+	"bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/codeservice"
 	"bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/internal/logic"
 	"bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/internal/svc"
-	"bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/pb"
 )
 
 type CodeServiceServer struct {
 	svcCtx *svc.ServiceContext
-	pb.UnimplementedCodeServiceServer
+	codeservice.UnimplementedCodeServiceServer
 }
 
 func NewCodeServiceServer(svcCtx *svc.ServiceContext) *CodeServiceServer {
@@ -22,7 +22,7 @@ func NewCodeServiceServer(svcCtx *svc.ServiceContext) *CodeServiceServer {
 	}
 }
 
-func (s *CodeServiceServer) CodeTransformation(ctx context.Context, in *pb.Request) (*pb.Response, error) {
+func (s *CodeServiceServer) CodeTransformation(ctx context.Context, in *codeservice.Request) (*codeservice.Response, error) {
 	l := logic.NewCodeTransformationLogic(ctx, s.svcCtx)
 	return l.CodeTransformation(in)
 }