|
@@ -0,0 +1,38 @@
|
|
|
|
+// Code generated by goctl. DO NOT EDIT!
|
|
|
|
+// Source: codeService.proto
|
|
|
|
+
|
|
|
|
+package codeservice
|
|
|
|
+
|
|
|
|
+import (
|
|
|
|
+ "context"
|
|
|
|
+
|
|
|
|
+ "bp.jydev.jianyu360.cn/BaseService/jyCodeService/rpc/codeservice/pb"
|
|
|
|
+
|
|
|
|
+ "github.com/zeromicro/go-zero/zrpc"
|
|
|
|
+ "google.golang.org/grpc"
|
|
|
|
+)
|
|
|
|
+
|
|
|
|
+type (
|
|
|
|
+ Request = pb.Request
|
|
|
|
+ Response = pb.Response
|
|
|
|
+ TypeStruct = pb.TypeStruct
|
|
|
|
+
|
|
|
|
+ CodeService interface {
|
|
|
|
+ CodeTransformation(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ defaultCodeService struct {
|
|
|
|
+ cli zrpc.Client
|
|
|
|
+ }
|
|
|
|
+)
|
|
|
|
+
|
|
|
|
+func NewCodeService(cli zrpc.Client) CodeService {
|
|
|
|
+ return &defaultCodeService{
|
|
|
|
+ cli: cli,
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *defaultCodeService) CodeTransformation(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
|
|
|
|
+ client := pb.NewCodeServiceClient(m.cli.Conn())
|
|
|
|
+ return client.CodeTransformation(ctx, in, opts...)
|
|
|
|
+}
|