|
@@ -1,17 +1,12 @@
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
// versions:
|
|
|
-// protoc-gen-go v1.23.0
|
|
|
-// protoc v3.11.4
|
|
|
+// protoc-gen-go v1.27.1
|
|
|
+// protoc v3.19.4
|
|
|
// source: biService.proto
|
|
|
|
|
|
package pb
|
|
|
|
|
|
import (
|
|
|
- context "context"
|
|
|
- proto "github.com/golang/protobuf/proto"
|
|
|
- grpc "google.golang.org/grpc"
|
|
|
- codes "google.golang.org/grpc/codes"
|
|
|
- status "google.golang.org/grpc/status"
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
reflect "reflect"
|
|
@@ -25,10 +20,6 @@ const (
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
)
|
|
|
|
|
|
-// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
-// of the legacy proto package is being used.
|
|
|
-const _ = proto.ProtoPackageIsVersion4
|
|
|
-
|
|
|
type MyDataAssetReq struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
@@ -526,6 +517,124 @@ func (x *GetInfoIdResp) GetData() []string {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+type CallReq struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ PositionId int64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
|
|
|
+ Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CallReq) Reset() {
|
|
|
+ *x = CallReq{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_biService_proto_msgTypes[7]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CallReq) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*CallReq) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *CallReq) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_biService_proto_msgTypes[7]
|
|
|
+ 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 CallReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*CallReq) Descriptor() ([]byte, []int) {
|
|
|
+ return file_biService_proto_rawDescGZIP(), []int{7}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CallReq) GetPositionId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.PositionId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CallReq) GetPhone() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Phone
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type Resp struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ ErrorCode int64 `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"`
|
|
|
+ Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Resp) Reset() {
|
|
|
+ *x = Resp{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_biService_proto_msgTypes[8]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Resp) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*Resp) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *Resp) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_biService_proto_msgTypes[8]
|
|
|
+ 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 Resp.ProtoReflect.Descriptor instead.
|
|
|
+func (*Resp) Descriptor() ([]byte, []int) {
|
|
|
+ return file_biService_proto_rawDescGZIP(), []int{8}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Resp) GetErrorCode() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.ErrorCode
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Resp) GetErrorMsg() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ErrorMsg
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Resp) GetStatus() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Status
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
var File_biService_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_biService_proto_rawDesc = []byte{
|
|
@@ -593,18 +702,29 @@ var file_biService_proto_rawDesc = []byte{
|
|
|
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, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
|
|
|
- 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0x99, 0x01, 0x0a,
|
|
|
- 0x09, 0x42, 0x69, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x30, 0x0a, 0x0b, 0x6d, 0x79,
|
|
|
- 0x44, 0x61, 0x74, 0x61, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x0f, 0x2e, 0x4d, 0x79, 0x44, 0x61,
|
|
|
- 0x74, 0x61, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x4d, 0x79, 0x44,
|
|
|
- 0x61, 0x74, 0x61, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2d, 0x0a, 0x0a,
|
|
|
- 0x61, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x2e, 0x41, 0x64, 0x64,
|
|
|
- 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x41, 0x64, 0x64,
|
|
|
- 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2b, 0x0a, 0x09, 0x67,
|
|
|
- 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x49, 0x64, 0x12, 0x0e, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72,
|
|
|
- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e,
|
|
|
- 0x66, 0x6f, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62,
|
|
|
- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x40, 0x0a, 0x07,
|
|
|
+ 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74,
|
|
|
+ 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70, 0x6f,
|
|
|
+ 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e,
|
|
|
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0x5a,
|
|
|
+ 0x0a, 0x04, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f,
|
|
|
+ 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 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, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01,
|
|
|
+ 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0xb2, 0x01, 0x0a, 0x09, 0x42,
|
|
|
+ 0x69, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x30, 0x0a, 0x0b, 0x6d, 0x79, 0x44, 0x61,
|
|
|
+ 0x74, 0x61, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x0f, 0x2e, 0x4d, 0x79, 0x44, 0x61, 0x74, 0x61,
|
|
|
+ 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x4d, 0x79, 0x44, 0x61, 0x74,
|
|
|
+ 0x61, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2d, 0x0a, 0x0a, 0x61, 0x64,
|
|
|
+ 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72,
|
|
|
+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72,
|
|
|
+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2b, 0x0a, 0x09, 0x67, 0x65, 0x74,
|
|
|
+ 0x49, 0x6e, 0x66, 0x6f, 0x49, 0x64, 0x12, 0x0e, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a,
|
|
|
+ 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f,
|
|
|
+ 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x17, 0x0a, 0x04, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x08,
|
|
|
+ 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x42,
|
|
|
+ 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -619,7 +739,7 @@ func file_biService_proto_rawDescGZIP() []byte {
|
|
|
return file_biService_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_biService_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
|
+var file_biService_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
|
var file_biService_proto_goTypes = []interface{}{
|
|
|
(*MyDataAssetReq)(nil), // 0: MyDataAssetReq
|
|
|
(*MyDataAssetResp)(nil), // 1: MyDataAssetResp
|
|
@@ -628,6 +748,8 @@ var file_biService_proto_goTypes = []interface{}{
|
|
|
(*AddProjectResp)(nil), // 4: AddProjectResp
|
|
|
(*AddProject)(nil), // 5: AddProject
|
|
|
(*GetInfoIdResp)(nil), // 6: GetInfoIdResp
|
|
|
+ (*CallReq)(nil), // 7: CallReq
|
|
|
+ (*Resp)(nil), // 8: Resp
|
|
|
}
|
|
|
var file_biService_proto_depIdxs = []int32{
|
|
|
2, // 0: MyDataAssetResp.data:type_name -> MyDataAsset
|
|
@@ -635,11 +757,13 @@ var file_biService_proto_depIdxs = []int32{
|
|
|
0, // 2: BiService.myDataAsset:input_type -> MyDataAssetReq
|
|
|
3, // 3: BiService.addProject:input_type -> AddProjectReq
|
|
|
3, // 4: BiService.getInfoId:input_type -> AddProjectReq
|
|
|
- 1, // 5: BiService.myDataAsset:output_type -> MyDataAssetResp
|
|
|
- 4, // 6: BiService.addProject:output_type -> AddProjectResp
|
|
|
- 6, // 7: BiService.getInfoId:output_type -> GetInfoIdResp
|
|
|
- 5, // [5:8] is the sub-list for method output_type
|
|
|
- 2, // [2:5] is the sub-list for method input_type
|
|
|
+ 7, // 5: BiService.Call:input_type -> CallReq
|
|
|
+ 1, // 6: BiService.myDataAsset:output_type -> MyDataAssetResp
|
|
|
+ 4, // 7: BiService.addProject:output_type -> AddProjectResp
|
|
|
+ 6, // 8: BiService.getInfoId:output_type -> GetInfoIdResp
|
|
|
+ 8, // 9: BiService.Call:output_type -> Resp
|
|
|
+ 6, // [6:10] is the sub-list for method output_type
|
|
|
+ 2, // [2:6] 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
|
|
@@ -735,6 +859,30 @@ func file_biService_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
+ file_biService_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*CallReq); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_biService_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*Resp); 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{
|
|
@@ -742,7 +890,7 @@ func file_biService_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_biService_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 7,
|
|
|
+ NumMessages: 9,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|
|
@@ -755,155 +903,3 @@ func file_biService_proto_init() {
|
|
|
file_biService_proto_goTypes = nil
|
|
|
file_biService_proto_depIdxs = nil
|
|
|
}
|
|
|
-
|
|
|
-// Reference imports to suppress errors if they are not otherwise used.
|
|
|
-var _ context.Context
|
|
|
-var _ grpc.ClientConnInterface
|
|
|
-
|
|
|
-// This is a compile-time assertion to ensure that this generated file
|
|
|
-// is compatible with the grpc package it is being compiled against.
|
|
|
-const _ = grpc.SupportPackageIsVersion6
|
|
|
-
|
|
|
-// BiServiceClient is the client API for BiService service.
|
|
|
-//
|
|
|
-// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
-type BiServiceClient interface {
|
|
|
- MyDataAsset(ctx context.Context, in *MyDataAssetReq, opts ...grpc.CallOption) (*MyDataAssetResp, error)
|
|
|
- AddProject(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*AddProjectResp, error)
|
|
|
- GetInfoId(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*GetInfoIdResp, error)
|
|
|
-}
|
|
|
-
|
|
|
-type biServiceClient struct {
|
|
|
- cc grpc.ClientConnInterface
|
|
|
-}
|
|
|
-
|
|
|
-func NewBiServiceClient(cc grpc.ClientConnInterface) BiServiceClient {
|
|
|
- return &biServiceClient{cc}
|
|
|
-}
|
|
|
-
|
|
|
-func (c *biServiceClient) MyDataAsset(ctx context.Context, in *MyDataAssetReq, opts ...grpc.CallOption) (*MyDataAssetResp, error) {
|
|
|
- out := new(MyDataAssetResp)
|
|
|
- err := c.cc.Invoke(ctx, "/BiService/myDataAsset", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *biServiceClient) AddProject(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*AddProjectResp, error) {
|
|
|
- out := new(AddProjectResp)
|
|
|
- err := c.cc.Invoke(ctx, "/BiService/addProject", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *biServiceClient) GetInfoId(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*GetInfoIdResp, error) {
|
|
|
- out := new(GetInfoIdResp)
|
|
|
- err := c.cc.Invoke(ctx, "/BiService/getInfoId", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-// BiServiceServer is the server API for BiService service.
|
|
|
-type BiServiceServer interface {
|
|
|
- MyDataAsset(context.Context, *MyDataAssetReq) (*MyDataAssetResp, error)
|
|
|
- AddProject(context.Context, *AddProjectReq) (*AddProjectResp, error)
|
|
|
- GetInfoId(context.Context, *AddProjectReq) (*GetInfoIdResp, error)
|
|
|
-}
|
|
|
-
|
|
|
-// UnimplementedBiServiceServer can be embedded to have forward compatible implementations.
|
|
|
-type UnimplementedBiServiceServer struct {
|
|
|
-}
|
|
|
-
|
|
|
-func (*UnimplementedBiServiceServer) MyDataAsset(context.Context, *MyDataAssetReq) (*MyDataAssetResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method MyDataAsset not implemented")
|
|
|
-}
|
|
|
-func (*UnimplementedBiServiceServer) AddProject(context.Context, *AddProjectReq) (*AddProjectResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method AddProject not implemented")
|
|
|
-}
|
|
|
-func (*UnimplementedBiServiceServer) GetInfoId(context.Context, *AddProjectReq) (*GetInfoIdResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method GetInfoId not implemented")
|
|
|
-}
|
|
|
-
|
|
|
-func RegisterBiServiceServer(s *grpc.Server, srv BiServiceServer) {
|
|
|
- s.RegisterService(&_BiService_serviceDesc, srv)
|
|
|
-}
|
|
|
-
|
|
|
-func _BiService_MyDataAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(MyDataAssetReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(BiServiceServer).MyDataAsset(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/BiService/MyDataAsset",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(BiServiceServer).MyDataAsset(ctx, req.(*MyDataAssetReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _BiService_AddProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(AddProjectReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(BiServiceServer).AddProject(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/BiService/AddProject",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(BiServiceServer).AddProject(ctx, req.(*AddProjectReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _BiService_GetInfoId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(AddProjectReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(BiServiceServer).GetInfoId(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/BiService/GetInfoId",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(BiServiceServer).GetInfoId(ctx, req.(*AddProjectReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-var _BiService_serviceDesc = grpc.ServiceDesc{
|
|
|
- ServiceName: "BiService",
|
|
|
- HandlerType: (*BiServiceServer)(nil),
|
|
|
- Methods: []grpc.MethodDesc{
|
|
|
- {
|
|
|
- MethodName: "myDataAsset",
|
|
|
- Handler: _BiService_MyDataAsset_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "addProject",
|
|
|
- Handler: _BiService_AddProject_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "getInfoId",
|
|
|
- Handler: _BiService_GetInfoId_Handler,
|
|
|
- },
|
|
|
- },
|
|
|
- Streams: []grpc.StreamDesc{},
|
|
|
- Metadata: "biService.proto",
|
|
|
-}
|