// Code generated by protoc-gen-go. DO NOT EDIT. // source: company_service.proto // package声明符,用来防止不同的消息类型有命名冲突 package pb import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" v1 "property-company-gateway/pb/v1" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("company_service.proto", fileDescriptor_cfe012e92534f5dd) } var fileDescriptor_cfe012e92534f5dd = []byte{ // 545 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x95, 0xcf, 0x6f, 0xd3, 0x30, 0x14, 0xc7, 0xb9, 0xf0, 0x43, 0x0f, 0x18, 0x9b, 0xc7, 0x36, 0x9a, 0xae, 0x4c, 0x03, 0x55, 0x9c, 0xd6, 0xa9, 0x70, 0xe3, 0x44, 0x97, 0x69, 0x68, 0x52, 0x11, 0x55, 0x51, 0x85, 0x04, 0x87, 0xc9, 0x4d, 0x1e, 0x69, 0x44, 0x17, 0x1b, 0xc7, 0xeb, 0xc8, 0x95, 0xbf, 0x1c, 0x35, 0xb6, 0xf3, 0xc3, 0x8d, 0xd3, 0x63, 0xbf, 0x9f, 0xe7, 0xcf, 0x73, 0x9d, 0x17, 0x07, 0x0e, 0x02, 0x76, 0xcb, 0x69, 0x92, 0xdd, 0xa4, 0x28, 0x56, 0x71, 0x80, 0x03, 0x2e, 0x98, 0x64, 0x04, 0xf8, 0x7c, 0xa0, 0x13, 0x6f, 0x77, 0x35, 0x3c, 0xd7, 0x55, 0x8a, 0xbe, 0xff, 0xb7, 0x03, 0x8f, 0x7d, 0x95, 0x90, 0x21, 0x3c,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f, 0x71, 0xd9, 0xb4, 0xc9, 0xcb, 0x72, 0x10, 0x3d, 0x07, 0xb5, 0x07, 0x7b, 0x0d, 0xf2, 0xd1, 0x68, 0xd8, 0x41, 0x75, 0x20, 0xba, 0x2e, 0x9c, 0x0b, 0x2f, 0x7a, 0x3f, 0xba, 0x5c, 0x30, 0x8e, 0x42, 0x66, 0x67, 0xfa, 0xf3, 0x78, 0x16, 0x51, 0x89, 0xf7, 0x34, 0x3b, 0xe7, 0xf3, 0xf9, 0xa3, 0xfc, 0x53, 0xf9, 0xe1, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x38, 0xc3, 0xb7, 0x61, 0x07, 0x00, 0x00, } // 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 // CompanyClient is the client API for Company service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type CompanyClient interface { // Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) Register(ctx context.Context, in *v1.RegisterRequest, opts ...grpc.CallOption) (*v1.RegisterReply, error) LoginByPhone(ctx context.Context, in *v1.LoginByPhoneRequest, opts ...grpc.CallOption) (*v1.LoginByPhoneReply, error) CheckPhone(ctx context.Context, in *v1.CheckPhoneRequest, opts ...grpc.CallOption) (*v1.CheckPhoneReply, error) ResetPassword(ctx context.Context, in *v1.ResetPasswordRequest, opts ...grpc.CallOption) (*v1.ResetPasswordReply, error) ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error) CompanyApprove(ctx context.Context, in *v1.CompanyApproveRequest, opts ...grpc.CallOption) (*v1.CompanyApproveReply, error) CompanyList(ctx context.Context, in *v1.CompanyListRequest, opts ...grpc.CallOption) (*v1.CompanyListReply, error) CompanyInfo(ctx context.Context, in *v1.CompanyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyInfoReply, error) CompanyUpdate(ctx context.Context, in *v1.CompanyUpdateRequest, opts ...grpc.CallOption) (*v1.CompanyUpdateReply, error) // 新增小区 CompanyAddGarden(ctx context.Context, in *v1.CompanyAddGardenRequest, opts ...grpc.CallOption) (*v1.CompanyAddGardenReply, error) // 检查是否可以新增小区 CompanyCanAddGarden(ctx context.Context, in *v1.CompanyCanAddGardenRequest, opts ...grpc.CallOption) (*v1.CompanyCanAddGardenReply, error) // 修改配额 CompanyChangeFreeGarden(ctx context.Context, in *v1.CompanyChangeFreeGardenRequest, opts ...grpc.CallOption) (*v1.CompanyChangeFreeGardenReply, error) // 设置支付方式 仅线下/支付到公司账户/支付到软件系统提供商账户 CompanyPayModel(ctx context.Context, in *v1.CompanyPayModelRequest, opts ...grpc.CallOption) (*v1.CompanyPayModelReply, error) // 微信商户申请 CompanyWxAccountApply(ctx context.Context, in *v1.CompanyWxAccountApplyRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyReply, error) // 微信商户申请列表 CompanyWxAccountApplyList(ctx context.Context, in *v1.CompanyWxAccountApplyListRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyListReply, error) // 微信商户申请资料信息 CompanyWxAccountApplyInfo(ctx context.Context, in *v1.CompanyWxAccountApplyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyInfoReply, error) // 统计 CompanyStatistic(ctx context.Context, in *v1.CompanyStatisticRequest, opts ...grpc.CallOption) (*v1.CompanyStatisticReply, error) // 公司用户 CompanyUserAdd(ctx context.Context, in *v1.CompanyUserAddRequest, opts ...grpc.CallOption) (*v1.CompanyUserAddReply, error) CompanyUserUpdate(ctx context.Context, in *v1.CompanyUserUpdateRequest, opts ...grpc.CallOption) (*v1.CompanyUserUpdateReply, error) CompanyUserDel(ctx context.Context, in *v1.CompanyUserDelRequest, opts ...grpc.CallOption) (*v1.CompanyUserDelReply, error) CompanyUserList(ctx context.Context, in *v1.CompanyUserListRequest, opts ...grpc.CallOption) (*v1.CompanyUserListReply, error) } type companyClient struct { cc grpc.ClientConnInterface } func NewCompanyClient(cc grpc.ClientConnInterface) CompanyClient { return &companyClient{cc} } func (c *companyClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) { out := new(v1.LoginReply) err := c.cc.Invoke(ctx, "/pb.service.Company/Login", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) Register(ctx context.Context, in *v1.RegisterRequest, opts ...grpc.CallOption) (*v1.RegisterReply, error) { out := new(v1.RegisterReply) err := c.cc.Invoke(ctx, "/pb.service.Company/Register", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) LoginByPhone(ctx context.Context, in *v1.LoginByPhoneRequest, opts ...grpc.CallOption) (*v1.LoginByPhoneReply, error) { out := new(v1.LoginByPhoneReply) err := c.cc.Invoke(ctx, "/pb.service.Company/LoginByPhone", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CheckPhone(ctx context.Context, in *v1.CheckPhoneRequest, opts ...grpc.CallOption) (*v1.CheckPhoneReply, error) { out := new(v1.CheckPhoneReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CheckPhone", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) ResetPassword(ctx context.Context, in *v1.ResetPasswordRequest, opts ...grpc.CallOption) (*v1.ResetPasswordReply, error) { out := new(v1.ResetPasswordReply) err := c.cc.Invoke(ctx, "/pb.service.Company/ResetPassword", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error) { out := new(v1.ChangePasswordReply) err := c.cc.Invoke(ctx, "/pb.service.Company/ChangePassword", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyApprove(ctx context.Context, in *v1.CompanyApproveRequest, opts ...grpc.CallOption) (*v1.CompanyApproveReply, error) { out := new(v1.CompanyApproveReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyApprove", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyList(ctx context.Context, in *v1.CompanyListRequest, opts ...grpc.CallOption) (*v1.CompanyListReply, error) { out := new(v1.CompanyListReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyInfo(ctx context.Context, in *v1.CompanyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyInfoReply, error) { out := new(v1.CompanyInfoReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyInfo", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyUpdate(ctx context.Context, in *v1.CompanyUpdateRequest, opts ...grpc.CallOption) (*v1.CompanyUpdateReply, error) { out := new(v1.CompanyUpdateReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUpdate", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyAddGarden(ctx context.Context, in *v1.CompanyAddGardenRequest, opts ...grpc.CallOption) (*v1.CompanyAddGardenReply, error) { out := new(v1.CompanyAddGardenReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyAddGarden", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyCanAddGarden(ctx context.Context, in *v1.CompanyCanAddGardenRequest, opts ...grpc.CallOption) (*v1.CompanyCanAddGardenReply, error) { out := new(v1.CompanyCanAddGardenReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyCanAddGarden", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyChangeFreeGarden(ctx context.Context, in *v1.CompanyChangeFreeGardenRequest, opts ...grpc.CallOption) (*v1.CompanyChangeFreeGardenReply, error) { out := new(v1.CompanyChangeFreeGardenReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyChangeFreeGarden", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyPayModel(ctx context.Context, in *v1.CompanyPayModelRequest, opts ...grpc.CallOption) (*v1.CompanyPayModelReply, error) { out := new(v1.CompanyPayModelReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyPayModel", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyWxAccountApply(ctx context.Context, in *v1.CompanyWxAccountApplyRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyReply, error) { out := new(v1.CompanyWxAccountApplyReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyWxAccountApply", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyWxAccountApplyList(ctx context.Context, in *v1.CompanyWxAccountApplyListRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyListReply, error) { out := new(v1.CompanyWxAccountApplyListReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyWxAccountApplyList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyWxAccountApplyInfo(ctx context.Context, in *v1.CompanyWxAccountApplyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyInfoReply, error) { out := new(v1.CompanyWxAccountApplyInfoReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyWxAccountApplyInfo", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyStatistic(ctx context.Context, in *v1.CompanyStatisticRequest, opts ...grpc.CallOption) (*v1.CompanyStatisticReply, error) { out := new(v1.CompanyStatisticReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyStatistic", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyUserAdd(ctx context.Context, in *v1.CompanyUserAddRequest, opts ...grpc.CallOption) (*v1.CompanyUserAddReply, error) { out := new(v1.CompanyUserAddReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUserAdd", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyUserUpdate(ctx context.Context, in *v1.CompanyUserUpdateRequest, opts ...grpc.CallOption) (*v1.CompanyUserUpdateReply, error) { out := new(v1.CompanyUserUpdateReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUserUpdate", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyUserDel(ctx context.Context, in *v1.CompanyUserDelRequest, opts ...grpc.CallOption) (*v1.CompanyUserDelReply, error) { out := new(v1.CompanyUserDelReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUserDel", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *companyClient) CompanyUserList(ctx context.Context, in *v1.CompanyUserListRequest, opts ...grpc.CallOption) (*v1.CompanyUserListReply, error) { out := new(v1.CompanyUserListReply) err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUserList", in, out, opts...) if err != nil { return nil, err } return out, nil } // CompanyServer is the server API for Company service. type CompanyServer interface { // Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error) Register(context.Context, *v1.RegisterRequest) (*v1.RegisterReply, error) LoginByPhone(context.Context, *v1.LoginByPhoneRequest) (*v1.LoginByPhoneReply, error) CheckPhone(context.Context, *v1.CheckPhoneRequest) (*v1.CheckPhoneReply, error) ResetPassword(context.Context, *v1.ResetPasswordRequest) (*v1.ResetPasswordReply, error) ChangePassword(context.Context, *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error) CompanyApprove(context.Context, *v1.CompanyApproveRequest) (*v1.CompanyApproveReply, error) CompanyList(context.Context, *v1.CompanyListRequest) (*v1.CompanyListReply, error) CompanyInfo(context.Context, *v1.CompanyInfoRequest) (*v1.CompanyInfoReply, error) CompanyUpdate(context.Context, *v1.CompanyUpdateRequest) (*v1.CompanyUpdateReply, error) // 新增小区 CompanyAddGarden(context.Context, *v1.CompanyAddGardenRequest) (*v1.CompanyAddGardenReply, error) // 检查是否可以新增小区 CompanyCanAddGarden(context.Context, *v1.CompanyCanAddGardenRequest) (*v1.CompanyCanAddGardenReply, error) // 修改配额 CompanyChangeFreeGarden(context.Context, *v1.CompanyChangeFreeGardenRequest) (*v1.CompanyChangeFreeGardenReply, error) // 设置支付方式 仅线下/支付到公司账户/支付到软件系统提供商账户 CompanyPayModel(context.Context, *v1.CompanyPayModelRequest) (*v1.CompanyPayModelReply, error) // 微信商户申请 CompanyWxAccountApply(context.Context, *v1.CompanyWxAccountApplyRequest) (*v1.CompanyWxAccountApplyReply, error) // 微信商户申请列表 CompanyWxAccountApplyList(context.Context, *v1.CompanyWxAccountApplyListRequest) (*v1.CompanyWxAccountApplyListReply, error) // 微信商户申请资料信息 CompanyWxAccountApplyInfo(context.Context, *v1.CompanyWxAccountApplyInfoRequest) (*v1.CompanyWxAccountApplyInfoReply, error) // 统计 CompanyStatistic(context.Context, *v1.CompanyStatisticRequest) (*v1.CompanyStatisticReply, error) // 公司用户 CompanyUserAdd(context.Context, *v1.CompanyUserAddRequest) (*v1.CompanyUserAddReply, error) CompanyUserUpdate(context.Context, *v1.CompanyUserUpdateRequest) (*v1.CompanyUserUpdateReply, error) CompanyUserDel(context.Context, *v1.CompanyUserDelRequest) (*v1.CompanyUserDelReply, error) CompanyUserList(context.Context, *v1.CompanyUserListRequest) (*v1.CompanyUserListReply, error) } // UnimplementedCompanyServer can be embedded to have forward compatible implementations. type UnimplementedCompanyServer struct { } func (*UnimplementedCompanyServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Login not implemented") } func (*UnimplementedCompanyServer) Register(ctx context.Context, req *v1.RegisterRequest) (*v1.RegisterReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Register not implemented") } func (*UnimplementedCompanyServer) LoginByPhone(ctx context.Context, req *v1.LoginByPhoneRequest) (*v1.LoginByPhoneReply, error) { return nil, status.Errorf(codes.Unimplemented, "method LoginByPhone not implemented") } func (*UnimplementedCompanyServer) CheckPhone(ctx context.Context, req *v1.CheckPhoneRequest) (*v1.CheckPhoneReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckPhone not implemented") } func (*UnimplementedCompanyServer) ResetPassword(ctx context.Context, req *v1.ResetPasswordRequest) (*v1.ResetPasswordReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ResetPassword not implemented") } func (*UnimplementedCompanyServer) ChangePassword(ctx context.Context, req *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented") } func (*UnimplementedCompanyServer) CompanyApprove(ctx context.Context, req *v1.CompanyApproveRequest) (*v1.CompanyApproveReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyApprove not implemented") } func (*UnimplementedCompanyServer) CompanyList(ctx context.Context, req *v1.CompanyListRequest) (*v1.CompanyListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyList not implemented") } func (*UnimplementedCompanyServer) CompanyInfo(ctx context.Context, req *v1.CompanyInfoRequest) (*v1.CompanyInfoReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyInfo not implemented") } func (*UnimplementedCompanyServer) CompanyUpdate(ctx context.Context, req *v1.CompanyUpdateRequest) (*v1.CompanyUpdateReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyUpdate not implemented") } func (*UnimplementedCompanyServer) CompanyAddGarden(ctx context.Context, req *v1.CompanyAddGardenRequest) (*v1.CompanyAddGardenReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyAddGarden not implemented") } func (*UnimplementedCompanyServer) CompanyCanAddGarden(ctx context.Context, req *v1.CompanyCanAddGardenRequest) (*v1.CompanyCanAddGardenReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyCanAddGarden not implemented") } func (*UnimplementedCompanyServer) CompanyChangeFreeGarden(ctx context.Context, req *v1.CompanyChangeFreeGardenRequest) (*v1.CompanyChangeFreeGardenReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyChangeFreeGarden not implemented") } func (*UnimplementedCompanyServer) CompanyPayModel(ctx context.Context, req *v1.CompanyPayModelRequest) (*v1.CompanyPayModelReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyPayModel not implemented") } func (*UnimplementedCompanyServer) CompanyWxAccountApply(ctx context.Context, req *v1.CompanyWxAccountApplyRequest) (*v1.CompanyWxAccountApplyReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyWxAccountApply not implemented") } func (*UnimplementedCompanyServer) CompanyWxAccountApplyList(ctx context.Context, req *v1.CompanyWxAccountApplyListRequest) (*v1.CompanyWxAccountApplyListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyWxAccountApplyList not implemented") } func (*UnimplementedCompanyServer) CompanyWxAccountApplyInfo(ctx context.Context, req *v1.CompanyWxAccountApplyInfoRequest) (*v1.CompanyWxAccountApplyInfoReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyWxAccountApplyInfo not implemented") } func (*UnimplementedCompanyServer) CompanyStatistic(ctx context.Context, req *v1.CompanyStatisticRequest) (*v1.CompanyStatisticReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyStatistic not implemented") } func (*UnimplementedCompanyServer) CompanyUserAdd(ctx context.Context, req *v1.CompanyUserAddRequest) (*v1.CompanyUserAddReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyUserAdd not implemented") } func (*UnimplementedCompanyServer) CompanyUserUpdate(ctx context.Context, req *v1.CompanyUserUpdateRequest) (*v1.CompanyUserUpdateReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyUserUpdate not implemented") } func (*UnimplementedCompanyServer) CompanyUserDel(ctx context.Context, req *v1.CompanyUserDelRequest) (*v1.CompanyUserDelReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyUserDel not implemented") } func (*UnimplementedCompanyServer) CompanyUserList(ctx context.Context, req *v1.CompanyUserListRequest) (*v1.CompanyUserListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CompanyUserList not implemented") } func RegisterCompanyServer(s *grpc.Server, srv CompanyServer) { s.RegisterService(&_Company_serviceDesc, srv) } func _Company_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.LoginRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).Login(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/Login", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).Login(ctx, req.(*v1.LoginRequest)) } return interceptor(ctx, in, info, handler) } func _Company_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.RegisterRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).Register(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/Register", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).Register(ctx, req.(*v1.RegisterRequest)) } return interceptor(ctx, in, info, handler) } func _Company_LoginByPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.LoginByPhoneRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).LoginByPhone(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/LoginByPhone", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).LoginByPhone(ctx, req.(*v1.LoginByPhoneRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CheckPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CheckPhoneRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CheckPhone(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CheckPhone", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CheckPhone(ctx, req.(*v1.CheckPhoneRequest)) } return interceptor(ctx, in, info, handler) } func _Company_ResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ResetPasswordRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).ResetPassword(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/ResetPassword", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).ResetPassword(ctx, req.(*v1.ResetPasswordRequest)) } return interceptor(ctx, in, info, handler) } func _Company_ChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ChangePasswordRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).ChangePassword(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/ChangePassword", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).ChangePassword(ctx, req.(*v1.ChangePasswordRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyApproveRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyApprove(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyApprove", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyApprove(ctx, req.(*v1.CompanyApproveRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyList(ctx, req.(*v1.CompanyListRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyInfo(ctx, req.(*v1.CompanyInfoRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyUpdateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyUpdate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyUpdate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyUpdate(ctx, req.(*v1.CompanyUpdateRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyAddGarden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyAddGardenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyAddGarden(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyAddGarden", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyAddGarden(ctx, req.(*v1.CompanyAddGardenRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyCanAddGarden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyCanAddGardenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyCanAddGarden(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyCanAddGarden", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyCanAddGarden(ctx, req.(*v1.CompanyCanAddGardenRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyChangeFreeGarden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyChangeFreeGardenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyChangeFreeGarden(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyChangeFreeGarden", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyChangeFreeGarden(ctx, req.(*v1.CompanyChangeFreeGardenRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyPayModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyPayModelRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyPayModel(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyPayModel", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyPayModel(ctx, req.(*v1.CompanyPayModelRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyWxAccountApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyWxAccountApplyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyWxAccountApply(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyWxAccountApply", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyWxAccountApply(ctx, req.(*v1.CompanyWxAccountApplyRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyWxAccountApplyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyWxAccountApplyListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyWxAccountApplyList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyWxAccountApplyList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyWxAccountApplyList(ctx, req.(*v1.CompanyWxAccountApplyListRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyWxAccountApplyInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyWxAccountApplyInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyWxAccountApplyInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyWxAccountApplyInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyWxAccountApplyInfo(ctx, req.(*v1.CompanyWxAccountApplyInfoRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyStatistic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyStatisticRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyStatistic(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyStatistic", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyStatistic(ctx, req.(*v1.CompanyStatisticRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyUserAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyUserAddRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyUserAdd(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyUserAdd", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyUserAdd(ctx, req.(*v1.CompanyUserAddRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyUserUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyUserUpdateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyUserUpdate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyUserUpdate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyUserUpdate(ctx, req.(*v1.CompanyUserUpdateRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyUserDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyUserDelRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyUserDel(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyUserDel", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyUserDel(ctx, req.(*v1.CompanyUserDelRequest)) } return interceptor(ctx, in, info, handler) } func _Company_CompanyUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CompanyUserListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CompanyServer).CompanyUserList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Company/CompanyUserList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CompanyServer).CompanyUserList(ctx, req.(*v1.CompanyUserListRequest)) } return interceptor(ctx, in, info, handler) } var _Company_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.service.Company", HandlerType: (*CompanyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _Company_Login_Handler, }, { MethodName: "Register", Handler: _Company_Register_Handler, }, { MethodName: "LoginByPhone", Handler: _Company_LoginByPhone_Handler, }, { MethodName: "CheckPhone", Handler: _Company_CheckPhone_Handler, }, { MethodName: "ResetPassword", Handler: _Company_ResetPassword_Handler, }, { MethodName: "ChangePassword", Handler: _Company_ChangePassword_Handler, }, { MethodName: "CompanyApprove", Handler: _Company_CompanyApprove_Handler, }, { MethodName: "CompanyList", Handler: _Company_CompanyList_Handler, }, { MethodName: "CompanyInfo", Handler: _Company_CompanyInfo_Handler, }, { MethodName: "CompanyUpdate", Handler: _Company_CompanyUpdate_Handler, }, { MethodName: "CompanyAddGarden", Handler: _Company_CompanyAddGarden_Handler, }, { MethodName: "CompanyCanAddGarden", Handler: _Company_CompanyCanAddGarden_Handler, }, { MethodName: "CompanyChangeFreeGarden", Handler: _Company_CompanyChangeFreeGarden_Handler, }, { MethodName: "CompanyPayModel", Handler: _Company_CompanyPayModel_Handler, }, { MethodName: "CompanyWxAccountApply", Handler: _Company_CompanyWxAccountApply_Handler, }, { MethodName: "CompanyWxAccountApplyList", Handler: _Company_CompanyWxAccountApplyList_Handler, }, { MethodName: "CompanyWxAccountApplyInfo", Handler: _Company_CompanyWxAccountApplyInfo_Handler, }, { MethodName: "CompanyStatistic", Handler: _Company_CompanyStatistic_Handler, }, { MethodName: "CompanyUserAdd", Handler: _Company_CompanyUserAdd_Handler, }, { MethodName: "CompanyUserUpdate", Handler: _Company_CompanyUserUpdate_Handler, }, { MethodName: "CompanyUserDel", Handler: _Company_CompanyUserDel_Handler, }, { MethodName: "CompanyUserList", Handler: _Company_CompanyUserList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "company_service.proto", }