household_service.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: household_service.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb
  5. import (
  6. context "context"
  7. fmt "fmt"
  8. proto "github.com/golang/protobuf/proto"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. math "math"
  13. v1 "property-garden/pb/v1"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  24. func init() {
  25. proto.RegisterFile("household_service.proto", fileDescriptor_29439a8e98771332)
  26. }
  27. var fileDescriptor_29439a8e98771332 = []byte{
  28. // 225 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcf, 0xc8, 0x2f, 0x2d,
  30. 0x4e, 0xcd, 0xc8, 0xcf, 0x49, 0x89, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28,
  31. 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2a, 0x48, 0xd2, 0x83, 0x8a, 0x48, 0x09, 0x95, 0x19, 0xea, 0xc3,
  32. 0xd5, 0x41, 0xe4, 0x8d, 0xde, 0x32, 0x71, 0x71, 0x7a, 0xc0, 0xc4, 0x84, 0xfc, 0xb9, 0xf8, 0xe1,
  33. 0x9c, 0xa0, 0xd4, 0xb4, 0xd2, 0xe2, 0x54, 0x21, 0x59, 0xbd, 0x82, 0xa4, 0xf8, 0x32, 0x43, 0x3d,
  34. 0x34, 0xf1, 0xa0, 0xd4, 0xc2, 0xd2, 0xd4, 0xe2, 0x12, 0x29, 0x69, 0x5c, 0xd2, 0x05, 0x39, 0x95,
  35. 0x4a, 0x0c, 0x42, 0x71, 0x5c, 0x22, 0x60, 0x99, 0xa0, 0xd4, 0xbc, 0x12, 0xe7, 0x8c, 0xc4, 0xbc,
  36. 0xf4, 0x54, 0xb7, 0xcc, 0xd4, 0x9c, 0x14, 0x21, 0x25, 0x64, 0x6d, 0x68, 0x92, 0x30, 0xa3, 0x15,
  37. 0xf0, 0xaa, 0x81, 0x98, 0x1f, 0xc1, 0x25, 0x04, 0xb7, 0x39, 0x3c, 0x31, 0xb3, 0xc4, 0x39, 0xbf,
  38. 0x34, 0xaf, 0x44, 0x48, 0x01, 0xdd, 0x51, 0x70, 0x29, 0x98, 0xd9, 0x72, 0x78, 0x54, 0x40, 0x4c,
  39. 0x0e, 0xe5, 0x12, 0x84, 0x4b, 0xba, 0xa4, 0xe6, 0x80, 0xd9, 0x42, 0xf2, 0xe8, 0xda, 0x60, 0x32,
  40. 0x30, 0x73, 0x65, 0x71, 0x2b, 0x00, 0x1b, 0xeb, 0x24, 0x12, 0x25, 0x54, 0x50, 0x94, 0x5f, 0x90,
  41. 0x5a, 0x54, 0x52, 0xa9, 0x9b, 0x9e, 0x58, 0x94, 0x92, 0x9a, 0xa7, 0x5f, 0x90, 0x94, 0xc4, 0x06,
  42. 0x8e, 0x0c, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x93, 0x37, 0xdc, 0xc7, 0x01, 0x00,
  43. 0x00,
  44. }
  45. // Reference imports to suppress errors if they are not otherwise used.
  46. var _ context.Context
  47. var _ grpc.ClientConnInterface
  48. // This is a compile-time assertion to ensure that this generated file
  49. // is compatible with the grpc package it is being compiled against.
  50. const _ = grpc.SupportPackageIsVersion6
  51. // HouseholdClient is the client API for Household service.
  52. //
  53. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  54. type HouseholdClient interface {
  55. // 因房屋更新,需拒绝申请
  56. HouseholdRefuse(ctx context.Context, in *v1.HouseholdRefuseRequest, opts ...grpc.CallOption) (*v1.HouseholdRefuseReply, error)
  57. // 因房屋,小区或单元信息变更需更新租房信息
  58. HouseRentChangeField(ctx context.Context, in *v1.HouseRentChangeFieldRequest, opts ...grpc.CallOption) (*v1.HouseRentChangeFieldReply, error)
  59. // 获取待审核的住户数量
  60. HouseholdWaitCount(ctx context.Context, in *v1.HouseholdWaitCountRequest, opts ...grpc.CallOption) (*v1.HouseholdWaitCountReply, error)
  61. // 住户退出房屋
  62. HouseholdDelHouse(ctx context.Context, in *v1.HouseholdDelHouseRequest, opts ...grpc.CallOption) (*v1.HouseholdDelHouseReply, error)
  63. }
  64. type householdClient struct {
  65. cc grpc.ClientConnInterface
  66. }
  67. func NewHouseholdClient(cc grpc.ClientConnInterface) HouseholdClient {
  68. return &householdClient{cc}
  69. }
  70. func (c *householdClient) HouseholdRefuse(ctx context.Context, in *v1.HouseholdRefuseRequest, opts ...grpc.CallOption) (*v1.HouseholdRefuseReply, error) {
  71. out := new(v1.HouseholdRefuseReply)
  72. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdRefuse", in, out, opts...)
  73. if err != nil {
  74. return nil, err
  75. }
  76. return out, nil
  77. }
  78. func (c *householdClient) HouseRentChangeField(ctx context.Context, in *v1.HouseRentChangeFieldRequest, opts ...grpc.CallOption) (*v1.HouseRentChangeFieldReply, error) {
  79. out := new(v1.HouseRentChangeFieldReply)
  80. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentChangeField", in, out, opts...)
  81. if err != nil {
  82. return nil, err
  83. }
  84. return out, nil
  85. }
  86. func (c *householdClient) HouseholdWaitCount(ctx context.Context, in *v1.HouseholdWaitCountRequest, opts ...grpc.CallOption) (*v1.HouseholdWaitCountReply, error) {
  87. out := new(v1.HouseholdWaitCountReply)
  88. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdWaitCount", in, out, opts...)
  89. if err != nil {
  90. return nil, err
  91. }
  92. return out, nil
  93. }
  94. func (c *householdClient) HouseholdDelHouse(ctx context.Context, in *v1.HouseholdDelHouseRequest, opts ...grpc.CallOption) (*v1.HouseholdDelHouseReply, error) {
  95. out := new(v1.HouseholdDelHouseReply)
  96. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdDelHouse", in, out, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. // HouseholdServer is the server API for Household service.
  103. type HouseholdServer interface {
  104. // 因房屋更新,需拒绝申请
  105. HouseholdRefuse(context.Context, *v1.HouseholdRefuseRequest) (*v1.HouseholdRefuseReply, error)
  106. // 因房屋,小区或单元信息变更需更新租房信息
  107. HouseRentChangeField(context.Context, *v1.HouseRentChangeFieldRequest) (*v1.HouseRentChangeFieldReply, error)
  108. // 获取待审核的住户数量
  109. HouseholdWaitCount(context.Context, *v1.HouseholdWaitCountRequest) (*v1.HouseholdWaitCountReply, error)
  110. // 住户退出房屋
  111. HouseholdDelHouse(context.Context, *v1.HouseholdDelHouseRequest) (*v1.HouseholdDelHouseReply, error)
  112. }
  113. // UnimplementedHouseholdServer can be embedded to have forward compatible implementations.
  114. type UnimplementedHouseholdServer struct {
  115. }
  116. func (*UnimplementedHouseholdServer) HouseholdRefuse(ctx context.Context, req *v1.HouseholdRefuseRequest) (*v1.HouseholdRefuseReply, error) {
  117. return nil, status.Errorf(codes.Unimplemented, "method HouseholdRefuse not implemented")
  118. }
  119. func (*UnimplementedHouseholdServer) HouseRentChangeField(ctx context.Context, req *v1.HouseRentChangeFieldRequest) (*v1.HouseRentChangeFieldReply, error) {
  120. return nil, status.Errorf(codes.Unimplemented, "method HouseRentChangeField not implemented")
  121. }
  122. func (*UnimplementedHouseholdServer) HouseholdWaitCount(ctx context.Context, req *v1.HouseholdWaitCountRequest) (*v1.HouseholdWaitCountReply, error) {
  123. return nil, status.Errorf(codes.Unimplemented, "method HouseholdWaitCount not implemented")
  124. }
  125. func (*UnimplementedHouseholdServer) HouseholdDelHouse(ctx context.Context, req *v1.HouseholdDelHouseRequest) (*v1.HouseholdDelHouseReply, error) {
  126. return nil, status.Errorf(codes.Unimplemented, "method HouseholdDelHouse not implemented")
  127. }
  128. func RegisterHouseholdServer(s *grpc.Server, srv HouseholdServer) {
  129. s.RegisterService(&_Household_serviceDesc, srv)
  130. }
  131. func _Household_HouseholdRefuse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  132. in := new(v1.HouseholdRefuseRequest)
  133. if err := dec(in); err != nil {
  134. return nil, err
  135. }
  136. if interceptor == nil {
  137. return srv.(HouseholdServer).HouseholdRefuse(ctx, in)
  138. }
  139. info := &grpc.UnaryServerInfo{
  140. Server: srv,
  141. FullMethod: "/pb.service.Household/HouseholdRefuse",
  142. }
  143. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  144. return srv.(HouseholdServer).HouseholdRefuse(ctx, req.(*v1.HouseholdRefuseRequest))
  145. }
  146. return interceptor(ctx, in, info, handler)
  147. }
  148. func _Household_HouseRentChangeField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  149. in := new(v1.HouseRentChangeFieldRequest)
  150. if err := dec(in); err != nil {
  151. return nil, err
  152. }
  153. if interceptor == nil {
  154. return srv.(HouseholdServer).HouseRentChangeField(ctx, in)
  155. }
  156. info := &grpc.UnaryServerInfo{
  157. Server: srv,
  158. FullMethod: "/pb.service.Household/HouseRentChangeField",
  159. }
  160. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  161. return srv.(HouseholdServer).HouseRentChangeField(ctx, req.(*v1.HouseRentChangeFieldRequest))
  162. }
  163. return interceptor(ctx, in, info, handler)
  164. }
  165. func _Household_HouseholdWaitCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  166. in := new(v1.HouseholdWaitCountRequest)
  167. if err := dec(in); err != nil {
  168. return nil, err
  169. }
  170. if interceptor == nil {
  171. return srv.(HouseholdServer).HouseholdWaitCount(ctx, in)
  172. }
  173. info := &grpc.UnaryServerInfo{
  174. Server: srv,
  175. FullMethod: "/pb.service.Household/HouseholdWaitCount",
  176. }
  177. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  178. return srv.(HouseholdServer).HouseholdWaitCount(ctx, req.(*v1.HouseholdWaitCountRequest))
  179. }
  180. return interceptor(ctx, in, info, handler)
  181. }
  182. func _Household_HouseholdDelHouse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  183. in := new(v1.HouseholdDelHouseRequest)
  184. if err := dec(in); err != nil {
  185. return nil, err
  186. }
  187. if interceptor == nil {
  188. return srv.(HouseholdServer).HouseholdDelHouse(ctx, in)
  189. }
  190. info := &grpc.UnaryServerInfo{
  191. Server: srv,
  192. FullMethod: "/pb.service.Household/HouseholdDelHouse",
  193. }
  194. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  195. return srv.(HouseholdServer).HouseholdDelHouse(ctx, req.(*v1.HouseholdDelHouseRequest))
  196. }
  197. return interceptor(ctx, in, info, handler)
  198. }
  199. var _Household_serviceDesc = grpc.ServiceDesc{
  200. ServiceName: "pb.service.Household",
  201. HandlerType: (*HouseholdServer)(nil),
  202. Methods: []grpc.MethodDesc{
  203. {
  204. MethodName: "HouseholdRefuse",
  205. Handler: _Household_HouseholdRefuse_Handler,
  206. },
  207. {
  208. MethodName: "HouseRentChangeField",
  209. Handler: _Household_HouseRentChangeField_Handler,
  210. },
  211. {
  212. MethodName: "HouseholdWaitCount",
  213. Handler: _Household_HouseholdWaitCount_Handler,
  214. },
  215. {
  216. MethodName: "HouseholdDelHouse",
  217. Handler: _Household_HouseholdDelHouse_Handler,
  218. },
  219. },
  220. Streams: []grpc.StreamDesc{},
  221. Metadata: "household_service.proto",
  222. }