household_service.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  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-system-gateway/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. // 353 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x5d, 0x4b, 0xc3, 0x30,
  30. 0x14, 0x86, 0xbd, 0x12, 0x0d, 0xf8, 0x95, 0x9b, 0x69, 0xb7, 0x29, 0xf8, 0x31, 0xbc, 0x59, 0xc7,
  31. 0xf4, 0x17, 0x28, 0xbb, 0x50, 0x18, 0x08, 0x93, 0xdd, 0x78, 0x33, 0x5a, 0x77, 0xd8, 0x26, 0xdd,
  32. 0x12, 0x93, 0xb4, 0xa3, 0xbf, 0xc6, 0xbf, 0x2a, 0x6d, 0x76, 0x62, 0xda, 0xa6, 0x9b, 0x97, 0x7d,
  33. 0x9f, 0x37, 0xcf, 0x81, 0x73, 0xa0, 0xa4, 0x31, 0x67, 0xb1, 0x84, 0x39, 0x8b, 0xa6, 0x13, 0x09,
  34. 0x22, 0x59, 0x7c, 0x82, 0xcf, 0x05, 0x53, 0x8c, 0x12, 0x1e, 0xfa, 0x9b, 0xc4, 0xa3, 0x49, 0xbf,
  35. 0x67, 0x7a, 0x9a, 0x3f, 0xfc, 0x1c, 0x90, 0xc3, 0x17, 0xcc, 0xe8, 0x90, 0x1c, 0x9b, 0x8f, 0x27,
  36. 0xce, 0xa3, 0x94, 0xb6, 0x7c, 0x1e, 0x4e, 0x92, 0xbe, 0x5f, 0x8c, 0x47, 0xf0, 0x1d, 0x83, 0x54,
  37. 0x9e, 0x57, 0x43, 0x79, 0x94, 0x5e, 0xef, 0xd1, 0x11, 0x39, 0xb5, 0x81, 0x60, 0x09, 0xd0, 0x4b,
  38. 0xc7, 0x8b, 0x0c, 0xa0, 0xb1, 0x55, 0xcb, 0xb5, 0xf3, 0x95, 0x1c, 0x19, 0x34, 0x5c, 0x48, 0x45,
  39. 0x9b, 0xe5, 0x07, 0x59, 0x8a, 0xb6, 0x0b, 0x37, 0xd4, 0xaa, 0x31, 0x39, 0x33, 0xf9, 0x58, 0x82,
  40. 0xc8, 0x75, 0x57, 0xe5, 0x17, 0x48, 0x50, 0xd9, 0xae, 0x2f, 0x68, 0x2d, 0xee, 0x70, 0x04, 0x2b,
  41. 0xe5, 0xd8, 0xa1, 0x89, 0x9d, 0x3b, 0xb4, 0x68, 0x71, 0x87, 0x1b, 0x50, 0xdd, 0xa1, 0x05, 0x9c,
  42. 0x3b, 0x2c, 0x70, 0xed, 0x7c, 0x23, 0x27, 0x06, 0x8d, 0xf9, 0x34, 0x50, 0x40, 0xdb, 0xe5, 0x27,
  43. 0x3a, 0x47, 0x63, 0xb3, 0x0e, 0x17, 0x8f, 0x92, 0x91, 0x01, 0x5b, 0xaf, 0x68, 0xa5, 0x9f, 0xa5,
  44. 0xce, 0xa3, 0xfc, 0xc1, 0xaa, 0xaa, 0x7a, 0x5f, 0x4c, 0x6b, 0x55, 0xf6, 0x21, 0xbe, 0xc8, 0xb9,
  45. 0xbd, 0x01, 0xb6, 0x58, 0xa9, 0x25, 0x5a, 0x3b, 0x8e, 0x15, 0xd9, 0x05, 0x1c, 0x70, 0xbb, 0xb3,
  46. 0xa7, 0x67, 0xcd, 0x48, 0xc3, 0x55, 0x19, 0x40, 0x44, 0xef, 0xb6, 0x28, 0x06, 0x10, 0xe1, 0xa4,
  47. 0x9b, 0x5d, 0x35, 0x3d, 0x88, 0x13, 0xcf, 0xd5, 0x78, 0x57, 0x81, 0x8a, 0x25, 0xbd, 0xdf, 0x22,
  48. 0xd1, 0x15, 0x1c, 0xd7, 0xf9, 0x47, 0x33, 0x9f, 0xf8, 0xdc, 0xfa, 0xf0, 0xb8, 0x60, 0x1c, 0x84,
  49. 0x4a, 0xbb, 0x32, 0x95, 0x0a, 0x96, 0xdd, 0x59, 0xa0, 0x60, 0x1d, 0xa4, 0x3d, 0x1e, 0x86, 0xfb,
  50. 0xf9, 0x6f, 0xe4, 0xf1, 0x37, 0x00, 0x00, 0xff, 0xff, 0x25, 0xa0, 0xfa, 0xfd, 0x81, 0x04, 0x00,
  51. 0x00,
  52. }
  53. // Reference imports to suppress errors if they are not otherwise used.
  54. var _ context.Context
  55. var _ grpc.ClientConnInterface
  56. // This is a compile-time assertion to ensure that this generated file
  57. // is compatible with the grpc package it is being compiled against.
  58. const _ = grpc.SupportPackageIsVersion6
  59. // HouseholdClient is the client API for Household service.
  60. //
  61. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  62. type HouseholdClient interface {
  63. //
  64. HouseholdApply(ctx context.Context, in *v1.HouseholdApplyRequest, opts ...grpc.CallOption) (*v1.HouseholdApplyReply, error)
  65. HouseholdApprove(ctx context.Context, in *v1.HouseholdApproveRequest, opts ...grpc.CallOption) (*v1.HouseholdApproveReply, error)
  66. HouseholdList(ctx context.Context, in *v1.HouseholdListRequest, opts ...grpc.CallOption) (*v1.HouseholdListReply, error)
  67. // 通过审核的业主信息列表
  68. HouseholdUserList(ctx context.Context, in *v1.HouseholdUserListRequest, opts ...grpc.CallOption) (*v1.HouseholdUserListReply, error)
  69. // 房屋租赁
  70. HouseRentApply(ctx context.Context, in *v1.HouseRentApplyRequest, opts ...grpc.CallOption) (*v1.HouseRentApplyReply, error)
  71. HouseRentApprove(ctx context.Context, in *v1.HouseRentApproveRequest, opts ...grpc.CallOption) (*v1.HouseRentApproveReply, error)
  72. HouseRentUpdate(ctx context.Context, in *v1.HouseRentUpdateRequest, opts ...grpc.CallOption) (*v1.HouseRentUpdateReply, error)
  73. HouseRentDown(ctx context.Context, in *v1.HouseRentDownRequest, opts ...grpc.CallOption) (*v1.HouseRentDownReply, error)
  74. HouseRentList(ctx context.Context, in *v1.HouseRentListRequest, opts ...grpc.CallOption) (*v1.HouseRentListReply, error)
  75. // 租房预约列表
  76. HouseRentAppointmentList(ctx context.Context, in *v1.HouseRentAppointmentListRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentListReply, error)
  77. // 删除租房预约
  78. HouseRentAppointmentDel(ctx context.Context, in *v1.HouseRentAppointmentDelRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentDelReply, error)
  79. HouseRentAppointmentStatus(ctx context.Context, in *v1.HouseRentAppointmentStatusRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentStatusReply, error)
  80. }
  81. type householdClient struct {
  82. cc grpc.ClientConnInterface
  83. }
  84. func NewHouseholdClient(cc grpc.ClientConnInterface) HouseholdClient {
  85. return &householdClient{cc}
  86. }
  87. func (c *householdClient) HouseholdApply(ctx context.Context, in *v1.HouseholdApplyRequest, opts ...grpc.CallOption) (*v1.HouseholdApplyReply, error) {
  88. out := new(v1.HouseholdApplyReply)
  89. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdApply", in, out, opts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return out, nil
  94. }
  95. func (c *householdClient) HouseholdApprove(ctx context.Context, in *v1.HouseholdApproveRequest, opts ...grpc.CallOption) (*v1.HouseholdApproveReply, error) {
  96. out := new(v1.HouseholdApproveReply)
  97. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdApprove", in, out, opts...)
  98. if err != nil {
  99. return nil, err
  100. }
  101. return out, nil
  102. }
  103. func (c *householdClient) HouseholdList(ctx context.Context, in *v1.HouseholdListRequest, opts ...grpc.CallOption) (*v1.HouseholdListReply, error) {
  104. out := new(v1.HouseholdListReply)
  105. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdList", in, out, opts...)
  106. if err != nil {
  107. return nil, err
  108. }
  109. return out, nil
  110. }
  111. func (c *householdClient) HouseholdUserList(ctx context.Context, in *v1.HouseholdUserListRequest, opts ...grpc.CallOption) (*v1.HouseholdUserListReply, error) {
  112. out := new(v1.HouseholdUserListReply)
  113. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdUserList", in, out, opts...)
  114. if err != nil {
  115. return nil, err
  116. }
  117. return out, nil
  118. }
  119. func (c *householdClient) HouseRentApply(ctx context.Context, in *v1.HouseRentApplyRequest, opts ...grpc.CallOption) (*v1.HouseRentApplyReply, error) {
  120. out := new(v1.HouseRentApplyReply)
  121. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentApply", in, out, opts...)
  122. if err != nil {
  123. return nil, err
  124. }
  125. return out, nil
  126. }
  127. func (c *householdClient) HouseRentApprove(ctx context.Context, in *v1.HouseRentApproveRequest, opts ...grpc.CallOption) (*v1.HouseRentApproveReply, error) {
  128. out := new(v1.HouseRentApproveReply)
  129. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentApprove", in, out, opts...)
  130. if err != nil {
  131. return nil, err
  132. }
  133. return out, nil
  134. }
  135. func (c *householdClient) HouseRentUpdate(ctx context.Context, in *v1.HouseRentUpdateRequest, opts ...grpc.CallOption) (*v1.HouseRentUpdateReply, error) {
  136. out := new(v1.HouseRentUpdateReply)
  137. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentUpdate", in, out, opts...)
  138. if err != nil {
  139. return nil, err
  140. }
  141. return out, nil
  142. }
  143. func (c *householdClient) HouseRentDown(ctx context.Context, in *v1.HouseRentDownRequest, opts ...grpc.CallOption) (*v1.HouseRentDownReply, error) {
  144. out := new(v1.HouseRentDownReply)
  145. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentDown", in, out, opts...)
  146. if err != nil {
  147. return nil, err
  148. }
  149. return out, nil
  150. }
  151. func (c *householdClient) HouseRentList(ctx context.Context, in *v1.HouseRentListRequest, opts ...grpc.CallOption) (*v1.HouseRentListReply, error) {
  152. out := new(v1.HouseRentListReply)
  153. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentList", in, out, opts...)
  154. if err != nil {
  155. return nil, err
  156. }
  157. return out, nil
  158. }
  159. func (c *householdClient) HouseRentAppointmentList(ctx context.Context, in *v1.HouseRentAppointmentListRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentListReply, error) {
  160. out := new(v1.HouseRentAppointmentListReply)
  161. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentAppointmentList", in, out, opts...)
  162. if err != nil {
  163. return nil, err
  164. }
  165. return out, nil
  166. }
  167. func (c *householdClient) HouseRentAppointmentDel(ctx context.Context, in *v1.HouseRentAppointmentDelRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentDelReply, error) {
  168. out := new(v1.HouseRentAppointmentDelReply)
  169. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentAppointmentDel", in, out, opts...)
  170. if err != nil {
  171. return nil, err
  172. }
  173. return out, nil
  174. }
  175. func (c *householdClient) HouseRentAppointmentStatus(ctx context.Context, in *v1.HouseRentAppointmentStatusRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentStatusReply, error) {
  176. out := new(v1.HouseRentAppointmentStatusReply)
  177. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentAppointmentStatus", in, out, opts...)
  178. if err != nil {
  179. return nil, err
  180. }
  181. return out, nil
  182. }
  183. // HouseholdServer is the server API for Household service.
  184. type HouseholdServer interface {
  185. //
  186. HouseholdApply(context.Context, *v1.HouseholdApplyRequest) (*v1.HouseholdApplyReply, error)
  187. HouseholdApprove(context.Context, *v1.HouseholdApproveRequest) (*v1.HouseholdApproveReply, error)
  188. HouseholdList(context.Context, *v1.HouseholdListRequest) (*v1.HouseholdListReply, error)
  189. // 通过审核的业主信息列表
  190. HouseholdUserList(context.Context, *v1.HouseholdUserListRequest) (*v1.HouseholdUserListReply, error)
  191. // 房屋租赁
  192. HouseRentApply(context.Context, *v1.HouseRentApplyRequest) (*v1.HouseRentApplyReply, error)
  193. HouseRentApprove(context.Context, *v1.HouseRentApproveRequest) (*v1.HouseRentApproveReply, error)
  194. HouseRentUpdate(context.Context, *v1.HouseRentUpdateRequest) (*v1.HouseRentUpdateReply, error)
  195. HouseRentDown(context.Context, *v1.HouseRentDownRequest) (*v1.HouseRentDownReply, error)
  196. HouseRentList(context.Context, *v1.HouseRentListRequest) (*v1.HouseRentListReply, error)
  197. // 租房预约列表
  198. HouseRentAppointmentList(context.Context, *v1.HouseRentAppointmentListRequest) (*v1.HouseRentAppointmentListReply, error)
  199. // 删除租房预约
  200. HouseRentAppointmentDel(context.Context, *v1.HouseRentAppointmentDelRequest) (*v1.HouseRentAppointmentDelReply, error)
  201. HouseRentAppointmentStatus(context.Context, *v1.HouseRentAppointmentStatusRequest) (*v1.HouseRentAppointmentStatusReply, error)
  202. }
  203. // UnimplementedHouseholdServer can be embedded to have forward compatible implementations.
  204. type UnimplementedHouseholdServer struct {
  205. }
  206. func (*UnimplementedHouseholdServer) HouseholdApply(ctx context.Context, req *v1.HouseholdApplyRequest) (*v1.HouseholdApplyReply, error) {
  207. return nil, status.Errorf(codes.Unimplemented, "method HouseholdApply not implemented")
  208. }
  209. func (*UnimplementedHouseholdServer) HouseholdApprove(ctx context.Context, req *v1.HouseholdApproveRequest) (*v1.HouseholdApproveReply, error) {
  210. return nil, status.Errorf(codes.Unimplemented, "method HouseholdApprove not implemented")
  211. }
  212. func (*UnimplementedHouseholdServer) HouseholdList(ctx context.Context, req *v1.HouseholdListRequest) (*v1.HouseholdListReply, error) {
  213. return nil, status.Errorf(codes.Unimplemented, "method HouseholdList not implemented")
  214. }
  215. func (*UnimplementedHouseholdServer) HouseholdUserList(ctx context.Context, req *v1.HouseholdUserListRequest) (*v1.HouseholdUserListReply, error) {
  216. return nil, status.Errorf(codes.Unimplemented, "method HouseholdUserList not implemented")
  217. }
  218. func (*UnimplementedHouseholdServer) HouseRentApply(ctx context.Context, req *v1.HouseRentApplyRequest) (*v1.HouseRentApplyReply, error) {
  219. return nil, status.Errorf(codes.Unimplemented, "method HouseRentApply not implemented")
  220. }
  221. func (*UnimplementedHouseholdServer) HouseRentApprove(ctx context.Context, req *v1.HouseRentApproveRequest) (*v1.HouseRentApproveReply, error) {
  222. return nil, status.Errorf(codes.Unimplemented, "method HouseRentApprove not implemented")
  223. }
  224. func (*UnimplementedHouseholdServer) HouseRentUpdate(ctx context.Context, req *v1.HouseRentUpdateRequest) (*v1.HouseRentUpdateReply, error) {
  225. return nil, status.Errorf(codes.Unimplemented, "method HouseRentUpdate not implemented")
  226. }
  227. func (*UnimplementedHouseholdServer) HouseRentDown(ctx context.Context, req *v1.HouseRentDownRequest) (*v1.HouseRentDownReply, error) {
  228. return nil, status.Errorf(codes.Unimplemented, "method HouseRentDown not implemented")
  229. }
  230. func (*UnimplementedHouseholdServer) HouseRentList(ctx context.Context, req *v1.HouseRentListRequest) (*v1.HouseRentListReply, error) {
  231. return nil, status.Errorf(codes.Unimplemented, "method HouseRentList not implemented")
  232. }
  233. func (*UnimplementedHouseholdServer) HouseRentAppointmentList(ctx context.Context, req *v1.HouseRentAppointmentListRequest) (*v1.HouseRentAppointmentListReply, error) {
  234. return nil, status.Errorf(codes.Unimplemented, "method HouseRentAppointmentList not implemented")
  235. }
  236. func (*UnimplementedHouseholdServer) HouseRentAppointmentDel(ctx context.Context, req *v1.HouseRentAppointmentDelRequest) (*v1.HouseRentAppointmentDelReply, error) {
  237. return nil, status.Errorf(codes.Unimplemented, "method HouseRentAppointmentDel not implemented")
  238. }
  239. func (*UnimplementedHouseholdServer) HouseRentAppointmentStatus(ctx context.Context, req *v1.HouseRentAppointmentStatusRequest) (*v1.HouseRentAppointmentStatusReply, error) {
  240. return nil, status.Errorf(codes.Unimplemented, "method HouseRentAppointmentStatus not implemented")
  241. }
  242. func RegisterHouseholdServer(s *grpc.Server, srv HouseholdServer) {
  243. s.RegisterService(&_Household_serviceDesc, srv)
  244. }
  245. func _Household_HouseholdApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  246. in := new(v1.HouseholdApplyRequest)
  247. if err := dec(in); err != nil {
  248. return nil, err
  249. }
  250. if interceptor == nil {
  251. return srv.(HouseholdServer).HouseholdApply(ctx, in)
  252. }
  253. info := &grpc.UnaryServerInfo{
  254. Server: srv,
  255. FullMethod: "/pb.service.Household/HouseholdApply",
  256. }
  257. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  258. return srv.(HouseholdServer).HouseholdApply(ctx, req.(*v1.HouseholdApplyRequest))
  259. }
  260. return interceptor(ctx, in, info, handler)
  261. }
  262. func _Household_HouseholdApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  263. in := new(v1.HouseholdApproveRequest)
  264. if err := dec(in); err != nil {
  265. return nil, err
  266. }
  267. if interceptor == nil {
  268. return srv.(HouseholdServer).HouseholdApprove(ctx, in)
  269. }
  270. info := &grpc.UnaryServerInfo{
  271. Server: srv,
  272. FullMethod: "/pb.service.Household/HouseholdApprove",
  273. }
  274. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  275. return srv.(HouseholdServer).HouseholdApprove(ctx, req.(*v1.HouseholdApproveRequest))
  276. }
  277. return interceptor(ctx, in, info, handler)
  278. }
  279. func _Household_HouseholdList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  280. in := new(v1.HouseholdListRequest)
  281. if err := dec(in); err != nil {
  282. return nil, err
  283. }
  284. if interceptor == nil {
  285. return srv.(HouseholdServer).HouseholdList(ctx, in)
  286. }
  287. info := &grpc.UnaryServerInfo{
  288. Server: srv,
  289. FullMethod: "/pb.service.Household/HouseholdList",
  290. }
  291. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  292. return srv.(HouseholdServer).HouseholdList(ctx, req.(*v1.HouseholdListRequest))
  293. }
  294. return interceptor(ctx, in, info, handler)
  295. }
  296. func _Household_HouseholdUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  297. in := new(v1.HouseholdUserListRequest)
  298. if err := dec(in); err != nil {
  299. return nil, err
  300. }
  301. if interceptor == nil {
  302. return srv.(HouseholdServer).HouseholdUserList(ctx, in)
  303. }
  304. info := &grpc.UnaryServerInfo{
  305. Server: srv,
  306. FullMethod: "/pb.service.Household/HouseholdUserList",
  307. }
  308. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  309. return srv.(HouseholdServer).HouseholdUserList(ctx, req.(*v1.HouseholdUserListRequest))
  310. }
  311. return interceptor(ctx, in, info, handler)
  312. }
  313. func _Household_HouseRentApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  314. in := new(v1.HouseRentApplyRequest)
  315. if err := dec(in); err != nil {
  316. return nil, err
  317. }
  318. if interceptor == nil {
  319. return srv.(HouseholdServer).HouseRentApply(ctx, in)
  320. }
  321. info := &grpc.UnaryServerInfo{
  322. Server: srv,
  323. FullMethod: "/pb.service.Household/HouseRentApply",
  324. }
  325. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  326. return srv.(HouseholdServer).HouseRentApply(ctx, req.(*v1.HouseRentApplyRequest))
  327. }
  328. return interceptor(ctx, in, info, handler)
  329. }
  330. func _Household_HouseRentApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  331. in := new(v1.HouseRentApproveRequest)
  332. if err := dec(in); err != nil {
  333. return nil, err
  334. }
  335. if interceptor == nil {
  336. return srv.(HouseholdServer).HouseRentApprove(ctx, in)
  337. }
  338. info := &grpc.UnaryServerInfo{
  339. Server: srv,
  340. FullMethod: "/pb.service.Household/HouseRentApprove",
  341. }
  342. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  343. return srv.(HouseholdServer).HouseRentApprove(ctx, req.(*v1.HouseRentApproveRequest))
  344. }
  345. return interceptor(ctx, in, info, handler)
  346. }
  347. func _Household_HouseRentUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  348. in := new(v1.HouseRentUpdateRequest)
  349. if err := dec(in); err != nil {
  350. return nil, err
  351. }
  352. if interceptor == nil {
  353. return srv.(HouseholdServer).HouseRentUpdate(ctx, in)
  354. }
  355. info := &grpc.UnaryServerInfo{
  356. Server: srv,
  357. FullMethod: "/pb.service.Household/HouseRentUpdate",
  358. }
  359. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  360. return srv.(HouseholdServer).HouseRentUpdate(ctx, req.(*v1.HouseRentUpdateRequest))
  361. }
  362. return interceptor(ctx, in, info, handler)
  363. }
  364. func _Household_HouseRentDown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  365. in := new(v1.HouseRentDownRequest)
  366. if err := dec(in); err != nil {
  367. return nil, err
  368. }
  369. if interceptor == nil {
  370. return srv.(HouseholdServer).HouseRentDown(ctx, in)
  371. }
  372. info := &grpc.UnaryServerInfo{
  373. Server: srv,
  374. FullMethod: "/pb.service.Household/HouseRentDown",
  375. }
  376. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  377. return srv.(HouseholdServer).HouseRentDown(ctx, req.(*v1.HouseRentDownRequest))
  378. }
  379. return interceptor(ctx, in, info, handler)
  380. }
  381. func _Household_HouseRentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  382. in := new(v1.HouseRentListRequest)
  383. if err := dec(in); err != nil {
  384. return nil, err
  385. }
  386. if interceptor == nil {
  387. return srv.(HouseholdServer).HouseRentList(ctx, in)
  388. }
  389. info := &grpc.UnaryServerInfo{
  390. Server: srv,
  391. FullMethod: "/pb.service.Household/HouseRentList",
  392. }
  393. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  394. return srv.(HouseholdServer).HouseRentList(ctx, req.(*v1.HouseRentListRequest))
  395. }
  396. return interceptor(ctx, in, info, handler)
  397. }
  398. func _Household_HouseRentAppointmentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  399. in := new(v1.HouseRentAppointmentListRequest)
  400. if err := dec(in); err != nil {
  401. return nil, err
  402. }
  403. if interceptor == nil {
  404. return srv.(HouseholdServer).HouseRentAppointmentList(ctx, in)
  405. }
  406. info := &grpc.UnaryServerInfo{
  407. Server: srv,
  408. FullMethod: "/pb.service.Household/HouseRentAppointmentList",
  409. }
  410. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  411. return srv.(HouseholdServer).HouseRentAppointmentList(ctx, req.(*v1.HouseRentAppointmentListRequest))
  412. }
  413. return interceptor(ctx, in, info, handler)
  414. }
  415. func _Household_HouseRentAppointmentDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  416. in := new(v1.HouseRentAppointmentDelRequest)
  417. if err := dec(in); err != nil {
  418. return nil, err
  419. }
  420. if interceptor == nil {
  421. return srv.(HouseholdServer).HouseRentAppointmentDel(ctx, in)
  422. }
  423. info := &grpc.UnaryServerInfo{
  424. Server: srv,
  425. FullMethod: "/pb.service.Household/HouseRentAppointmentDel",
  426. }
  427. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  428. return srv.(HouseholdServer).HouseRentAppointmentDel(ctx, req.(*v1.HouseRentAppointmentDelRequest))
  429. }
  430. return interceptor(ctx, in, info, handler)
  431. }
  432. func _Household_HouseRentAppointmentStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  433. in := new(v1.HouseRentAppointmentStatusRequest)
  434. if err := dec(in); err != nil {
  435. return nil, err
  436. }
  437. if interceptor == nil {
  438. return srv.(HouseholdServer).HouseRentAppointmentStatus(ctx, in)
  439. }
  440. info := &grpc.UnaryServerInfo{
  441. Server: srv,
  442. FullMethod: "/pb.service.Household/HouseRentAppointmentStatus",
  443. }
  444. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  445. return srv.(HouseholdServer).HouseRentAppointmentStatus(ctx, req.(*v1.HouseRentAppointmentStatusRequest))
  446. }
  447. return interceptor(ctx, in, info, handler)
  448. }
  449. var _Household_serviceDesc = grpc.ServiceDesc{
  450. ServiceName: "pb.service.Household",
  451. HandlerType: (*HouseholdServer)(nil),
  452. Methods: []grpc.MethodDesc{
  453. {
  454. MethodName: "HouseholdApply",
  455. Handler: _Household_HouseholdApply_Handler,
  456. },
  457. {
  458. MethodName: "HouseholdApprove",
  459. Handler: _Household_HouseholdApprove_Handler,
  460. },
  461. {
  462. MethodName: "HouseholdList",
  463. Handler: _Household_HouseholdList_Handler,
  464. },
  465. {
  466. MethodName: "HouseholdUserList",
  467. Handler: _Household_HouseholdUserList_Handler,
  468. },
  469. {
  470. MethodName: "HouseRentApply",
  471. Handler: _Household_HouseRentApply_Handler,
  472. },
  473. {
  474. MethodName: "HouseRentApprove",
  475. Handler: _Household_HouseRentApprove_Handler,
  476. },
  477. {
  478. MethodName: "HouseRentUpdate",
  479. Handler: _Household_HouseRentUpdate_Handler,
  480. },
  481. {
  482. MethodName: "HouseRentDown",
  483. Handler: _Household_HouseRentDown_Handler,
  484. },
  485. {
  486. MethodName: "HouseRentList",
  487. Handler: _Household_HouseRentList_Handler,
  488. },
  489. {
  490. MethodName: "HouseRentAppointmentList",
  491. Handler: _Household_HouseRentAppointmentList_Handler,
  492. },
  493. {
  494. MethodName: "HouseRentAppointmentDel",
  495. Handler: _Household_HouseRentAppointmentDel_Handler,
  496. },
  497. {
  498. MethodName: "HouseRentAppointmentStatus",
  499. Handler: _Household_HouseRentAppointmentStatus_Handler,
  500. },
  501. },
  502. Streams: []grpc.StreamDesc{},
  503. Metadata: "household_service.proto",
  504. }