123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: household_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-applete-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("household_service.proto", fileDescriptor_29439a8e98771332)
- }
- var fileDescriptor_29439a8e98771332 = []byte{
- // 287 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xcf, 0x4a, 0xc3, 0x40,
- 0x10, 0xc6, 0xbd, 0x28, 0xb8, 0xe0, 0xbf, 0xb9, 0x88, 0x49, 0xa3, 0xe0, 0xbd, 0x29, 0xd5, 0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a7, 0x55, 0xa1, 0x10, 0x92, 0xf1, 0x8a, 0xce, 0x8d, 0x31, 0x0e, 0xe1, 0xe1,
- 0x51, 0x5a, 0xf2, 0xc6, 0xf7, 0x5b, 0x70, 0xe6, 0xdb, 0xd4, 0x7b, 0x94, 0x23, 0x74, 0x55, 0xee,
- 0x7d, 0x4d, 0x1a, 0x54, 0xf5, 0x0e, 0xf1, 0x9a, 0x7c, 0xc5, 0x24, 0x38, 0xa1, 0x50, 0xcd, 0xb4,
- 0x20, 0xaa, 0x50, 0xe1, 0xf4, 0xa7, 0x50, 0xb8, 0x2f, 0x9a, 0x19, 0x95, 0xe5, 0xd9, 0xe1, 0x03,
- 0x3c, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x4c, 0xdb, 0x75, 0x3b, 0x03, 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
- // HouseholdClient is the client API for Household service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type HouseholdClient interface {
- //
- HouseholdApply(ctx context.Context, in *v1.HouseholdApplyRequest, opts ...grpc.CallOption) (*v1.HouseholdApplyReply, error)
- HouseholdApprove(ctx context.Context, in *v1.HouseholdApproveRequest, opts ...grpc.CallOption) (*v1.HouseholdApproveReply, error)
- HouseholdList(ctx context.Context, in *v1.HouseholdListRequest, opts ...grpc.CallOption) (*v1.HouseholdListReply, error)
- // 通过审核的业主信息列表
- HouseholdUserList(ctx context.Context, in *v1.HouseholdUserListRequest, opts ...grpc.CallOption) (*v1.HouseholdUserListReply, error)
- // 房屋租赁
- HouseRentApply(ctx context.Context, in *v1.HouseRentApplyRequest, opts ...grpc.CallOption) (*v1.HouseRentApplyReply, error)
- HouseRentApprove(ctx context.Context, in *v1.HouseRentApproveRequest, opts ...grpc.CallOption) (*v1.HouseRentApproveReply, error)
- HouseRentUpdate(ctx context.Context, in *v1.HouseRentUpdateRequest, opts ...grpc.CallOption) (*v1.HouseRentUpdateReply, error)
- HouseRentDown(ctx context.Context, in *v1.HouseRentDownRequest, opts ...grpc.CallOption) (*v1.HouseRentDownReply, error)
- HouseRentList(ctx context.Context, in *v1.HouseRentListRequest, opts ...grpc.CallOption) (*v1.HouseRentListReply, error)
- }
- type householdClient struct {
- cc grpc.ClientConnInterface
- }
- func NewHouseholdClient(cc grpc.ClientConnInterface) HouseholdClient {
- return &householdClient{cc}
- }
- func (c *householdClient) HouseholdApply(ctx context.Context, in *v1.HouseholdApplyRequest, opts ...grpc.CallOption) (*v1.HouseholdApplyReply, error) {
- out := new(v1.HouseholdApplyReply)
- err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdApply", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *householdClient) HouseholdApprove(ctx context.Context, in *v1.HouseholdApproveRequest, opts ...grpc.CallOption) (*v1.HouseholdApproveReply, error) {
- out := new(v1.HouseholdApproveReply)
- err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdApprove", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *householdClient) HouseholdList(ctx context.Context, in *v1.HouseholdListRequest, opts ...grpc.CallOption) (*v1.HouseholdListReply, error) {
- out := new(v1.HouseholdListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *householdClient) HouseholdUserList(ctx context.Context, in *v1.HouseholdUserListRequest, opts ...grpc.CallOption) (*v1.HouseholdUserListReply, error) {
- out := new(v1.HouseholdUserListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdUserList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *householdClient) HouseRentApply(ctx context.Context, in *v1.HouseRentApplyRequest, opts ...grpc.CallOption) (*v1.HouseRentApplyReply, error) {
- out := new(v1.HouseRentApplyReply)
- err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentApply", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *householdClient) HouseRentApprove(ctx context.Context, in *v1.HouseRentApproveRequest, opts ...grpc.CallOption) (*v1.HouseRentApproveReply, error) {
- out := new(v1.HouseRentApproveReply)
- err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentApprove", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *householdClient) HouseRentUpdate(ctx context.Context, in *v1.HouseRentUpdateRequest, opts ...grpc.CallOption) (*v1.HouseRentUpdateReply, error) {
- out := new(v1.HouseRentUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *householdClient) HouseRentDown(ctx context.Context, in *v1.HouseRentDownRequest, opts ...grpc.CallOption) (*v1.HouseRentDownReply, error) {
- out := new(v1.HouseRentDownReply)
- err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentDown", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *householdClient) HouseRentList(ctx context.Context, in *v1.HouseRentListRequest, opts ...grpc.CallOption) (*v1.HouseRentListReply, error) {
- out := new(v1.HouseRentListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // HouseholdServer is the server API for Household service.
- type HouseholdServer interface {
- //
- HouseholdApply(context.Context, *v1.HouseholdApplyRequest) (*v1.HouseholdApplyReply, error)
- HouseholdApprove(context.Context, *v1.HouseholdApproveRequest) (*v1.HouseholdApproveReply, error)
- HouseholdList(context.Context, *v1.HouseholdListRequest) (*v1.HouseholdListReply, error)
- // 通过审核的业主信息列表
- HouseholdUserList(context.Context, *v1.HouseholdUserListRequest) (*v1.HouseholdUserListReply, error)
- // 房屋租赁
- HouseRentApply(context.Context, *v1.HouseRentApplyRequest) (*v1.HouseRentApplyReply, error)
- HouseRentApprove(context.Context, *v1.HouseRentApproveRequest) (*v1.HouseRentApproveReply, error)
- HouseRentUpdate(context.Context, *v1.HouseRentUpdateRequest) (*v1.HouseRentUpdateReply, error)
- HouseRentDown(context.Context, *v1.HouseRentDownRequest) (*v1.HouseRentDownReply, error)
- HouseRentList(context.Context, *v1.HouseRentListRequest) (*v1.HouseRentListReply, error)
- }
- // UnimplementedHouseholdServer can be embedded to have forward compatible implementations.
- type UnimplementedHouseholdServer struct {
- }
- func (*UnimplementedHouseholdServer) HouseholdApply(ctx context.Context, req *v1.HouseholdApplyRequest) (*v1.HouseholdApplyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HouseholdApply not implemented")
- }
- func (*UnimplementedHouseholdServer) HouseholdApprove(ctx context.Context, req *v1.HouseholdApproveRequest) (*v1.HouseholdApproveReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HouseholdApprove not implemented")
- }
- func (*UnimplementedHouseholdServer) HouseholdList(ctx context.Context, req *v1.HouseholdListRequest) (*v1.HouseholdListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HouseholdList not implemented")
- }
- func (*UnimplementedHouseholdServer) HouseholdUserList(ctx context.Context, req *v1.HouseholdUserListRequest) (*v1.HouseholdUserListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HouseholdUserList not implemented")
- }
- func (*UnimplementedHouseholdServer) HouseRentApply(ctx context.Context, req *v1.HouseRentApplyRequest) (*v1.HouseRentApplyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HouseRentApply not implemented")
- }
- func (*UnimplementedHouseholdServer) HouseRentApprove(ctx context.Context, req *v1.HouseRentApproveRequest) (*v1.HouseRentApproveReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HouseRentApprove not implemented")
- }
- func (*UnimplementedHouseholdServer) HouseRentUpdate(ctx context.Context, req *v1.HouseRentUpdateRequest) (*v1.HouseRentUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HouseRentUpdate not implemented")
- }
- func (*UnimplementedHouseholdServer) HouseRentDown(ctx context.Context, req *v1.HouseRentDownRequest) (*v1.HouseRentDownReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HouseRentDown not implemented")
- }
- func (*UnimplementedHouseholdServer) HouseRentList(ctx context.Context, req *v1.HouseRentListRequest) (*v1.HouseRentListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HouseRentList not implemented")
- }
- func RegisterHouseholdServer(s *grpc.Server, srv HouseholdServer) {
- s.RegisterService(&_Household_serviceDesc, srv)
- }
- func _Household_HouseholdApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.HouseholdApplyRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(HouseholdServer).HouseholdApply(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Household/HouseholdApply",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(HouseholdServer).HouseholdApply(ctx, req.(*v1.HouseholdApplyRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Household_HouseholdApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.HouseholdApproveRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(HouseholdServer).HouseholdApprove(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Household/HouseholdApprove",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(HouseholdServer).HouseholdApprove(ctx, req.(*v1.HouseholdApproveRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Household_HouseholdList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.HouseholdListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(HouseholdServer).HouseholdList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Household/HouseholdList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(HouseholdServer).HouseholdList(ctx, req.(*v1.HouseholdListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Household_HouseholdUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.HouseholdUserListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(HouseholdServer).HouseholdUserList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Household/HouseholdUserList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(HouseholdServer).HouseholdUserList(ctx, req.(*v1.HouseholdUserListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Household_HouseRentApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.HouseRentApplyRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(HouseholdServer).HouseRentApply(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Household/HouseRentApply",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(HouseholdServer).HouseRentApply(ctx, req.(*v1.HouseRentApplyRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Household_HouseRentApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.HouseRentApproveRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(HouseholdServer).HouseRentApprove(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Household/HouseRentApprove",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(HouseholdServer).HouseRentApprove(ctx, req.(*v1.HouseRentApproveRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Household_HouseRentUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.HouseRentUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(HouseholdServer).HouseRentUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Household/HouseRentUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(HouseholdServer).HouseRentUpdate(ctx, req.(*v1.HouseRentUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Household_HouseRentDown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.HouseRentDownRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(HouseholdServer).HouseRentDown(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Household/HouseRentDown",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(HouseholdServer).HouseRentDown(ctx, req.(*v1.HouseRentDownRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Household_HouseRentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.HouseRentListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(HouseholdServer).HouseRentList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Household/HouseRentList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(HouseholdServer).HouseRentList(ctx, req.(*v1.HouseRentListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Household_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.service.Household",
- HandlerType: (*HouseholdServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "HouseholdApply",
- Handler: _Household_HouseholdApply_Handler,
- },
- {
- MethodName: "HouseholdApprove",
- Handler: _Household_HouseholdApprove_Handler,
- },
- {
- MethodName: "HouseholdList",
- Handler: _Household_HouseholdList_Handler,
- },
- {
- MethodName: "HouseholdUserList",
- Handler: _Household_HouseholdUserList_Handler,
- },
- {
- MethodName: "HouseRentApply",
- Handler: _Household_HouseRentApply_Handler,
- },
- {
- MethodName: "HouseRentApprove",
- Handler: _Household_HouseRentApprove_Handler,
- },
- {
- MethodName: "HouseRentUpdate",
- Handler: _Household_HouseRentUpdate_Handler,
- },
- {
- MethodName: "HouseRentDown",
- Handler: _Household_HouseRentDown_Handler,
- },
- {
- MethodName: "HouseRentList",
- Handler: _Household_HouseRentList_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "household_service.proto",
- }
|