|
@@ -1,411 +0,0 @@
|
|
|
-// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
|
-// versions:
|
|
|
-// - protoc-gen-go-grpc v1.2.0
|
|
|
-// - protoc v3.19.4
|
|
|
-// source: userCenter.proto
|
|
|
-
|
|
|
-package pb
|
|
|
-
|
|
|
-import (
|
|
|
- context "context"
|
|
|
- grpc "google.golang.org/grpc"
|
|
|
- codes "google.golang.org/grpc/codes"
|
|
|
- status "google.golang.org/grpc/status"
|
|
|
-)
|
|
|
-
|
|
|
-// This is a compile-time assertion to ensure that this generated file
|
|
|
-// is compatible with the grpc package it is being compiled against.
|
|
|
-// Requires gRPC-Go v1.32.0 or later.
|
|
|
-const _ = grpc.SupportPackageIsVersion7
|
|
|
-
|
|
|
-// UserCenterClient is the client API for UserCenter service.
|
|
|
-//
|
|
|
-// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
|
-type UserCenterClient interface {
|
|
|
- //企业认证
|
|
|
- EntAuth(ctx context.Context, in *EntAuthReq, opts ...grpc.CallOption) (*EntAuthResp, error)
|
|
|
- //机构审核
|
|
|
- EntExamine(ctx context.Context, in *ExamineReq, opts ...grpc.CallOption) (*ExamineResp, error)
|
|
|
- //企业列表
|
|
|
- EntList(ctx context.Context, in *EntListReq, opts ...grpc.CallOption) (*EntListResp, error)
|
|
|
- //审核列表
|
|
|
- ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResp, error)
|
|
|
- //查看企业状态
|
|
|
- CheckEnt(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*CheckEntResp, error)
|
|
|
- //查看企业详情
|
|
|
- EntInfo(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*EntInfoResp, error)
|
|
|
- // 冻结/解冻企业
|
|
|
- EntUpdate(ctx context.Context, in *EntUpdateReq, opts ...grpc.CallOption) (*ExamineResp, error)
|
|
|
- //查看审核详情
|
|
|
- ExamineInfo(ctx context.Context, in *CheckExamineReq, opts ...grpc.CallOption) (*EntInfoResp, error)
|
|
|
- //根据统一社会信用代码查询企业状态
|
|
|
- GetStatusByCode(ctx context.Context, in *GetStatusByCodeReq, opts ...grpc.CallOption) (*GetStatusByCodeResp, error)
|
|
|
-}
|
|
|
-
|
|
|
-type userCenterClient struct {
|
|
|
- cc grpc.ClientConnInterface
|
|
|
-}
|
|
|
-
|
|
|
-func NewUserCenterClient(cc grpc.ClientConnInterface) UserCenterClient {
|
|
|
- return &userCenterClient{cc}
|
|
|
-}
|
|
|
-
|
|
|
-func (c *userCenterClient) EntAuth(ctx context.Context, in *EntAuthReq, opts ...grpc.CallOption) (*EntAuthResp, error) {
|
|
|
- out := new(EntAuthResp)
|
|
|
- err := c.cc.Invoke(ctx, "/UserCenter/EntAuth", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *userCenterClient) EntExamine(ctx context.Context, in *ExamineReq, opts ...grpc.CallOption) (*ExamineResp, error) {
|
|
|
- out := new(ExamineResp)
|
|
|
- err := c.cc.Invoke(ctx, "/UserCenter/EntExamine", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *userCenterClient) EntList(ctx context.Context, in *EntListReq, opts ...grpc.CallOption) (*EntListResp, error) {
|
|
|
- out := new(EntListResp)
|
|
|
- err := c.cc.Invoke(ctx, "/UserCenter/EntList", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *userCenterClient) ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResp, error) {
|
|
|
- out := new(ExamineListResp)
|
|
|
- err := c.cc.Invoke(ctx, "/UserCenter/ExamineList", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *userCenterClient) CheckEnt(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*CheckEntResp, error) {
|
|
|
- out := new(CheckEntResp)
|
|
|
- err := c.cc.Invoke(ctx, "/UserCenter/CheckEnt", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *userCenterClient) EntInfo(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*EntInfoResp, error) {
|
|
|
- out := new(EntInfoResp)
|
|
|
- err := c.cc.Invoke(ctx, "/UserCenter/EntInfo", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *userCenterClient) EntUpdate(ctx context.Context, in *EntUpdateReq, opts ...grpc.CallOption) (*ExamineResp, error) {
|
|
|
- out := new(ExamineResp)
|
|
|
- err := c.cc.Invoke(ctx, "/UserCenter/EntUpdate", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *userCenterClient) ExamineInfo(ctx context.Context, in *CheckExamineReq, opts ...grpc.CallOption) (*EntInfoResp, error) {
|
|
|
- out := new(EntInfoResp)
|
|
|
- err := c.cc.Invoke(ctx, "/UserCenter/ExamineInfo", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-func (c *userCenterClient) GetStatusByCode(ctx context.Context, in *GetStatusByCodeReq, opts ...grpc.CallOption) (*GetStatusByCodeResp, error) {
|
|
|
- out := new(GetStatusByCodeResp)
|
|
|
- err := c.cc.Invoke(ctx, "/UserCenter/GetStatusByCode", in, out, opts...)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- return out, nil
|
|
|
-}
|
|
|
-
|
|
|
-// UserCenterServer is the server API for UserCenter service.
|
|
|
-// All implementations must embed UnimplementedUserCenterServer
|
|
|
-// for forward compatibility
|
|
|
-type UserCenterServer interface {
|
|
|
- //企业认证
|
|
|
- EntAuth(context.Context, *EntAuthReq) (*EntAuthResp, error)
|
|
|
- //机构审核
|
|
|
- EntExamine(context.Context, *ExamineReq) (*ExamineResp, error)
|
|
|
- //企业列表
|
|
|
- EntList(context.Context, *EntListReq) (*EntListResp, error)
|
|
|
- //审核列表
|
|
|
- ExamineList(context.Context, *ExamineListReq) (*ExamineListResp, error)
|
|
|
- //查看企业状态
|
|
|
- CheckEnt(context.Context, *CheckEntReq) (*CheckEntResp, error)
|
|
|
- //查看企业详情
|
|
|
- EntInfo(context.Context, *CheckEntReq) (*EntInfoResp, error)
|
|
|
- // 冻结/解冻企业
|
|
|
- EntUpdate(context.Context, *EntUpdateReq) (*ExamineResp, error)
|
|
|
- //查看审核详情
|
|
|
- ExamineInfo(context.Context, *CheckExamineReq) (*EntInfoResp, error)
|
|
|
- //根据统一社会信用代码查询企业状态
|
|
|
- GetStatusByCode(context.Context, *GetStatusByCodeReq) (*GetStatusByCodeResp, error)
|
|
|
- mustEmbedUnimplementedUserCenterServer()
|
|
|
-}
|
|
|
-
|
|
|
-// UnimplementedUserCenterServer must be embedded to have forward compatible implementations.
|
|
|
-type UnimplementedUserCenterServer struct {
|
|
|
-}
|
|
|
-
|
|
|
-func (UnimplementedUserCenterServer) EntAuth(context.Context, *EntAuthReq) (*EntAuthResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method EntAuth not implemented")
|
|
|
-}
|
|
|
-func (UnimplementedUserCenterServer) EntExamine(context.Context, *ExamineReq) (*ExamineResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method EntExamine not implemented")
|
|
|
-}
|
|
|
-func (UnimplementedUserCenterServer) EntList(context.Context, *EntListReq) (*EntListResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method EntList not implemented")
|
|
|
-}
|
|
|
-func (UnimplementedUserCenterServer) ExamineList(context.Context, *ExamineListReq) (*ExamineListResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method ExamineList not implemented")
|
|
|
-}
|
|
|
-func (UnimplementedUserCenterServer) CheckEnt(context.Context, *CheckEntReq) (*CheckEntResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method CheckEnt not implemented")
|
|
|
-}
|
|
|
-func (UnimplementedUserCenterServer) EntInfo(context.Context, *CheckEntReq) (*EntInfoResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method EntInfo not implemented")
|
|
|
-}
|
|
|
-func (UnimplementedUserCenterServer) EntUpdate(context.Context, *EntUpdateReq) (*ExamineResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method EntUpdate not implemented")
|
|
|
-}
|
|
|
-func (UnimplementedUserCenterServer) ExamineInfo(context.Context, *CheckExamineReq) (*EntInfoResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method ExamineInfo not implemented")
|
|
|
-}
|
|
|
-func (UnimplementedUserCenterServer) GetStatusByCode(context.Context, *GetStatusByCodeReq) (*GetStatusByCodeResp, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method GetStatusByCode not implemented")
|
|
|
-}
|
|
|
-func (UnimplementedUserCenterServer) mustEmbedUnimplementedUserCenterServer() {}
|
|
|
-
|
|
|
-// UnsafeUserCenterServer may be embedded to opt out of forward compatibility for this service.
|
|
|
-// Use of this interface is not recommended, as added methods to UserCenterServer will
|
|
|
-// result in compilation errors.
|
|
|
-type UnsafeUserCenterServer interface {
|
|
|
- mustEmbedUnimplementedUserCenterServer()
|
|
|
-}
|
|
|
-
|
|
|
-func RegisterUserCenterServer(s grpc.ServiceRegistrar, srv UserCenterServer) {
|
|
|
- s.RegisterService(&UserCenter_ServiceDesc, srv)
|
|
|
-}
|
|
|
-
|
|
|
-func _UserCenter_EntAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(EntAuthReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(UserCenterServer).EntAuth(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/UserCenter/EntAuth",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserCenterServer).EntAuth(ctx, req.(*EntAuthReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _UserCenter_EntExamine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(ExamineReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(UserCenterServer).EntExamine(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/UserCenter/EntExamine",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserCenterServer).EntExamine(ctx, req.(*ExamineReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _UserCenter_EntList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(EntListReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(UserCenterServer).EntList(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/UserCenter/EntList",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserCenterServer).EntList(ctx, req.(*EntListReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _UserCenter_ExamineList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(ExamineListReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(UserCenterServer).ExamineList(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/UserCenter/ExamineList",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserCenterServer).ExamineList(ctx, req.(*ExamineListReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _UserCenter_CheckEnt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(CheckEntReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(UserCenterServer).CheckEnt(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/UserCenter/CheckEnt",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserCenterServer).CheckEnt(ctx, req.(*CheckEntReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _UserCenter_EntInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(CheckEntReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(UserCenterServer).EntInfo(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/UserCenter/EntInfo",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserCenterServer).EntInfo(ctx, req.(*CheckEntReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _UserCenter_EntUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(EntUpdateReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(UserCenterServer).EntUpdate(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/UserCenter/EntUpdate",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserCenterServer).EntUpdate(ctx, req.(*EntUpdateReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _UserCenter_ExamineInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(CheckExamineReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(UserCenterServer).ExamineInfo(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/UserCenter/ExamineInfo",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserCenterServer).ExamineInfo(ctx, req.(*CheckExamineReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-func _UserCenter_GetStatusByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(GetStatusByCodeReq)
|
|
|
- if err := dec(in); err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
- if interceptor == nil {
|
|
|
- return srv.(UserCenterServer).GetStatusByCode(ctx, in)
|
|
|
- }
|
|
|
- info := &grpc.UnaryServerInfo{
|
|
|
- Server: srv,
|
|
|
- FullMethod: "/UserCenter/GetStatusByCode",
|
|
|
- }
|
|
|
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserCenterServer).GetStatusByCode(ctx, req.(*GetStatusByCodeReq))
|
|
|
- }
|
|
|
- return interceptor(ctx, in, info, handler)
|
|
|
-}
|
|
|
-
|
|
|
-// UserCenter_ServiceDesc is the grpc.ServiceDesc for UserCenter service.
|
|
|
-// It's only intended for direct use with grpc.RegisterService,
|
|
|
-// and not to be introspected or modified (even as a copy)
|
|
|
-var UserCenter_ServiceDesc = grpc.ServiceDesc{
|
|
|
- ServiceName: "UserCenter",
|
|
|
- HandlerType: (*UserCenterServer)(nil),
|
|
|
- Methods: []grpc.MethodDesc{
|
|
|
- {
|
|
|
- MethodName: "EntAuth",
|
|
|
- Handler: _UserCenter_EntAuth_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "EntExamine",
|
|
|
- Handler: _UserCenter_EntExamine_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "EntList",
|
|
|
- Handler: _UserCenter_EntList_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "ExamineList",
|
|
|
- Handler: _UserCenter_ExamineList_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "CheckEnt",
|
|
|
- Handler: _UserCenter_CheckEnt_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "EntInfo",
|
|
|
- Handler: _UserCenter_EntInfo_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "EntUpdate",
|
|
|
- Handler: _UserCenter_EntUpdate_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "ExamineInfo",
|
|
|
- Handler: _UserCenter_ExamineInfo_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "GetStatusByCode",
|
|
|
- Handler: _UserCenter_GetStatusByCode_Handler,
|
|
|
- },
|
|
|
- },
|
|
|
- Streams: []grpc.StreamDesc{},
|
|
|
- Metadata: "userCenter.proto",
|
|
|
-}
|