|
@@ -1,7 +1,7 @@
|
|
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
|
// versions:
|
|
|
// - protoc-gen-go-grpc v1.2.0
|
|
|
-// - protoc v3.15.1
|
|
|
+// - protoc v3.19.4
|
|
|
// source: medical.proto
|
|
|
|
|
|
package medical
|
|
@@ -28,6 +28,16 @@ type MedicalClient interface {
|
|
|
GetFilterItem(ctx context.Context, in *Zero, opts ...grpc.CallOption) (*FilterItemResp, error)
|
|
|
//搜索经销商
|
|
|
Distributor(ctx context.Context, in *SearchDistributorReq, opts ...grpc.CallOption) (*CompanyResp, error)
|
|
|
+ // 认领(经销商/医疗机构)
|
|
|
+ Claim(ctx context.Context, in *ClaimReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
|
+ // 取消认领(经销商/医疗机构)
|
|
|
+ UnClaimed(ctx context.Context, in *UnclaimedReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
|
+ // 是否认领(经销商/医疗机构)
|
|
|
+ IsClaimed(ctx context.Context, in *IsClaimedReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
|
+ // 我认领的经销商列表
|
|
|
+ ClaimedDistributorList(ctx context.Context, in *ClaimedReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
|
+ // 我认领的医疗机构列表
|
|
|
+ ClaimedInstitutionList(ctx context.Context, in *ClaimedReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
|
}
|
|
|
|
|
|
type medicalClient struct {
|
|
@@ -65,6 +75,51 @@ func (c *medicalClient) Distributor(ctx context.Context, in *SearchDistributorRe
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *medicalClient) Claim(ctx context.Context, in *ClaimReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
|
+ out := new(CommonResp)
|
|
|
+ err := c.cc.Invoke(ctx, "/medical.Medical/Claim", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *medicalClient) UnClaimed(ctx context.Context, in *UnclaimedReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
|
+ out := new(CommonResp)
|
|
|
+ err := c.cc.Invoke(ctx, "/medical.Medical/UnClaimed", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *medicalClient) IsClaimed(ctx context.Context, in *IsClaimedReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
|
+ out := new(CommonResp)
|
|
|
+ err := c.cc.Invoke(ctx, "/medical.Medical/IsClaimed", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *medicalClient) ClaimedDistributorList(ctx context.Context, in *ClaimedReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
|
+ out := new(CommonResp)
|
|
|
+ err := c.cc.Invoke(ctx, "/medical.Medical/ClaimedDistributorList", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *medicalClient) ClaimedInstitutionList(ctx context.Context, in *ClaimedReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
|
+ out := new(CommonResp)
|
|
|
+ err := c.cc.Invoke(ctx, "/medical.Medical/ClaimedInstitutionList", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
// MedicalServer is the server API for Medical service.
|
|
|
// All implementations must embed UnimplementedMedicalServer
|
|
|
// for forward compatibility
|
|
@@ -75,6 +130,16 @@ type MedicalServer interface {
|
|
|
GetFilterItem(context.Context, *Zero) (*FilterItemResp, error)
|
|
|
//搜索经销商
|
|
|
Distributor(context.Context, *SearchDistributorReq) (*CompanyResp, error)
|
|
|
+ // 认领(经销商/医疗机构)
|
|
|
+ Claim(context.Context, *ClaimReq) (*CommonResp, error)
|
|
|
+ // 取消认领(经销商/医疗机构)
|
|
|
+ UnClaimed(context.Context, *UnclaimedReq) (*CommonResp, error)
|
|
|
+ // 是否认领(经销商/医疗机构)
|
|
|
+ IsClaimed(context.Context, *IsClaimedReq) (*CommonResp, error)
|
|
|
+ // 我认领的经销商列表
|
|
|
+ ClaimedDistributorList(context.Context, *ClaimedReq) (*CommonResp, error)
|
|
|
+ // 我认领的医疗机构列表
|
|
|
+ ClaimedInstitutionList(context.Context, *ClaimedReq) (*CommonResp, error)
|
|
|
mustEmbedUnimplementedMedicalServer()
|
|
|
}
|
|
|
|
|
@@ -91,6 +156,21 @@ func (UnimplementedMedicalServer) GetFilterItem(context.Context, *Zero) (*Filter
|
|
|
func (UnimplementedMedicalServer) Distributor(context.Context, *SearchDistributorReq) (*CompanyResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Distributor not implemented")
|
|
|
}
|
|
|
+func (UnimplementedMedicalServer) Claim(context.Context, *ClaimReq) (*CommonResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method Claim not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedMedicalServer) UnClaimed(context.Context, *UnclaimedReq) (*CommonResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method UnClaimed not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedMedicalServer) IsClaimed(context.Context, *IsClaimedReq) (*CommonResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method IsClaimed not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedMedicalServer) ClaimedDistributorList(context.Context, *ClaimedReq) (*CommonResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method ClaimedDistributorList not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedMedicalServer) ClaimedInstitutionList(context.Context, *ClaimedReq) (*CommonResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method ClaimedInstitutionList not implemented")
|
|
|
+}
|
|
|
func (UnimplementedMedicalServer) mustEmbedUnimplementedMedicalServer() {}
|
|
|
|
|
|
// UnsafeMedicalServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -158,6 +238,96 @@ func _Medical_Distributor_Handler(srv interface{}, ctx context.Context, dec func
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Medical_Claim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(ClaimReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MedicalServer).Claim(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/medical.Medical/Claim",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MedicalServer).Claim(ctx, req.(*ClaimReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _Medical_UnClaimed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(UnclaimedReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MedicalServer).UnClaimed(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/medical.Medical/UnClaimed",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MedicalServer).UnClaimed(ctx, req.(*UnclaimedReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _Medical_IsClaimed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(IsClaimedReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MedicalServer).IsClaimed(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/medical.Medical/IsClaimed",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MedicalServer).IsClaimed(ctx, req.(*IsClaimedReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _Medical_ClaimedDistributorList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(ClaimedReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MedicalServer).ClaimedDistributorList(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/medical.Medical/ClaimedDistributorList",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MedicalServer).ClaimedDistributorList(ctx, req.(*ClaimedReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _Medical_ClaimedInstitutionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(ClaimedReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MedicalServer).ClaimedInstitutionList(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/medical.Medical/ClaimedInstitutionList",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MedicalServer).ClaimedInstitutionList(ctx, req.(*ClaimedReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
// Medical_ServiceDesc is the grpc.ServiceDesc for Medical service.
|
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -177,6 +347,26 @@ var Medical_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "Distributor",
|
|
|
Handler: _Medical_Distributor_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "Claim",
|
|
|
+ Handler: _Medical_Claim_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "UnClaimed",
|
|
|
+ Handler: _Medical_UnClaimed_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "IsClaimed",
|
|
|
+ Handler: _Medical_IsClaimed_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "ClaimedDistributorList",
|
|
|
+ Handler: _Medical_ClaimedDistributorList_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "ClaimedInstitutionList",
|
|
|
+ Handler: _Medical_ClaimedInstitutionList_Handler,
|
|
|
+ },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "medical.proto",
|