household_service.pb.go 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127
  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-household/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. // 643 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x96, 0xdf, 0x6f, 0xd3, 0x3e,
  30. 0x14, 0xc5, 0xbf, 0x2f, 0x5f, 0xc4, 0x2c, 0x7e, 0xed, 0xb2, 0xd1, 0xad, 0xac, 0xa3, 0x1a, 0x6c,
  31. 0xf0, 0x42, 0xa7, 0xc2, 0x1b, 0x12, 0x0f, 0x63, 0x65, 0xa3, 0x52, 0x35, 0xa0, 0xa8, 0x1a, 0xe2,
  32. 0x81, 0x29, 0x6d, 0xee, 0xda, 0x40, 0x1a, 0x9b, 0xc4, 0x29, 0xf4, 0x95, 0xbf, 0x1c, 0x39, 0x8e,
  33. 0x5d, 0x27, 0x76, 0xd2, 0xbd, 0x65, 0xe7, 0x1c, 0x7f, 0x9c, 0xeb, 0xdc, 0x3b, 0x97, 0x34, 0x66,
  34. 0x34, 0x4d, 0x70, 0x46, 0x43, 0xff, 0x2a, 0xc1, 0x78, 0x11, 0x4c, 0xb0, 0xc3, 0x62, 0xca, 0x29,
  35. 0x10, 0x36, 0xee, 0xe4, 0x4a, 0x13, 0x16, 0xdd, 0x63, 0x9d, 0x93, 0xfe, 0xab, 0xbf, 0x40, 0x36,
  36. 0x3e, 0x28, 0x0d, 0xba, 0xe4, 0xff, 0x01, 0x9d, 0x06, 0x11, 0x3c, 0xec, 0xb0, 0xf1, 0xd5, 0xa2,
  37. 0xdb, 0xc9, 0xfe, 0x1a, 0xe2, 0xaf, 0x14, 0x13, 0xde, 0xdc, 0x2c, 0x8a, 0x2c, 0x5c, 0x1e, 0xfc,
  38. 0x07, 0x1f, 0xc9, 0x7d, 0xbd, 0x3e, 0x7b, 0x48, 0xa0, 0x95, 0xe7, 0x4a, 0xba, 0xc2, 0x3c, 0xae,
  39. 0xb2, 0x25, 0xf0, 0x8c, 0xdc, 0x19, 0xa2, 0x17, 0x5e, 0x78, 0x73, 0x3c, 0x49, 0xf9, 0x0c, 0x9a,
  40. 0x79, 0xdc, 0x14, 0x15, 0x6a, 0xc7, 0xe9, 0x49, 0xce, 0x57, 0x02, 0xa3, 0x04, 0xe3, 0x11, 0xf3,
  41. 0x3d, 0x8e, 0x17, 0xc1, 0xe4, 0xa7, 0x08, 0x40, 0x3b, 0x5f, 0x61, 0x5b, 0x8a, 0xb9, 0x5f, 0x93,
  42. 0x90, 0xe4, 0x01, 0xb9, 0xa7, 0xdf, 0xfd, 0x84, 0xb1, 0x70, 0x09, 0x7b, 0xe5, 0x92, 0x32, 0x59,
  43. 0x11, 0x9b, 0x15, 0xae, 0xa4, 0x8d, 0xc8, 0xa6, 0x36, 0x7a, 0x18, 0x4a, 0xe0, 0x93, 0xf2, 0x12,
  44. 0xe5, 0x28, 0x66, 0xab, 0x3a, 0x20, 0xb1, 0x43, 0xf2, 0xc0, 0xdc, 0x2f, 0xa6, 0x0b, 0x84, 0x7d,
  45. 0xc7, 0x8b, 0x08, 0x43, 0x41, 0xf7, 0x2a, 0x7d, 0xc9, 0xec, 0x93, 0xbb, 0xda, 0x1a, 0x04, 0x09,
  46. 0x07, 0xeb, 0x53, 0x0a, 0x55, 0xd1, 0x76, 0xdd, 0xa6, 0x5d, 0xb5, 0x38, 0xe9, 0x0c, 0x67, 0x55,
  47. 0xad, 0x9c, 0xca, 0xaa, 0x57, 0x01, 0x89, 0x7d, 0x43, 0x6e, 0x0b, 0xa9, 0x1f, 0x5d, 0x53, 0x78,
  48. 0x64, 0x7c, 0x48, 0x21, 0x28, 0xc8, 0x96, 0xa5, 0xcb, 0xb5, 0x73, 0xb2, 0xab, 0xb9, 0xe7, 0x5e,
  49. 0xec, 0x63, 0x24, 0x3e, 0xfa, 0xe9, 0xcc, 0x8b, 0xa6, 0x08, 0xcf, 0xcb, 0x3b, 0x97, 0x13, 0x8a,
  50. 0x7e, 0xb8, 0x3e, 0x68, 0x0f, 0xce, 0x10, 0xaf, 0xd3, 0x04, 0xed, 0xc1, 0x91, 0x7a, 0xe5, 0xe0,
  51. 0x28, 0xbb, 0xd8, 0x96, 0x43, 0x8c, 0xb8, 0xa3, 0x2d, 0xb5, 0xec, 0x6c, 0x4b, 0xc3, 0x2d, 0xf6,
  52. 0x4f, 0x6e, 0xd8, 0xfd, 0x63, 0x18, 0xce, 0xfe, 0x29, 0xf8, 0xc5, 0x92, 0x85, 0x25, 0x47, 0xab,
  53. 0x58, 0xf2, 0x4a, 0x77, 0x96, 0x6c, 0xda, 0xc5, 0x86, 0x14, 0x4e, 0x8f, 0xfe, 0x8e, 0xc0, 0xca,
  54. 0x0b, 0xd5, 0xd9, 0x90, 0x2b, 0xd3, 0x46, 0xd9, 0xbd, 0xad, 0xd4, 0x4a, 0x94, 0xd9, 0x84, 0x53,
  55. 0xd2, 0x30, 0x4f, 0x80, 0x06, 0x11, 0x9f, 0x8b, 0x47, 0xdf, 0x87, 0x43, 0xc7, 0x09, 0x19, 0xbe,
  56. 0xc2, 0x3f, 0x5d, 0x17, 0x93, 0x1b, 0xfd, 0x20, 0x3b, 0xae, 0x44, 0xf6, 0xfa, 0x47, 0x35, 0x08,
  57. 0xb3, 0x92, 0x67, 0x6b, 0x73, 0xb5, 0x45, 0xf5, 0x30, 0xac, 0x2d, 0xaa, 0x87, 0xe1, 0x4d, 0x8a,
  58. 0xca, 0x62, 0x72, 0x23, 0x46, 0x9a, 0xae, 0xc4, 0x17, 0xee, 0xf1, 0x34, 0x81, 0x17, 0x35, 0x10,
  59. 0x19, 0x51, 0xdb, 0x1d, 0xdd, 0x20, 0x29, 0x77, 0xfc, 0x4e, 0xb6, 0x74, 0x48, 0xce, 0xe8, 0x59,
  60. 0x80, 0xa1, 0x0f, 0x07, 0x65, 0x82, 0x61, 0xaa, 0x5d, 0xda, 0xb5, 0x19, 0x7d, 0x13, 0xe9, 0x91,
  61. 0xbd, 0xf4, 0x02, 0x7e, 0x4a, 0xd3, 0x88, 0x43, 0xbb, 0x3c, 0xcd, 0xda, 0x2a, 0xdf, 0x44, 0xae,
  62. 0x84, 0x1e, 0x28, 0xf1, 0x5f, 0xec, 0xf2, 0xcf, 0xa7, 0x74, 0x1c, 0x06, 0x13, 0xd1, 0x61, 0x2d,
  63. 0xe3, 0xbf, 0x9b, 0xa1, 0x97, 0x07, 0xca, 0xb2, 0xf5, 0x51, 0x28, 0xf5, 0xfd, 0x9c, 0xf1, 0xe5,
  64. 0x28, 0x0a, 0x68, 0xd4, 0x5f, 0x1d, 0x85, 0xcb, 0x2c, 0x1f, 0x85, 0x3b, 0x23, 0xf9, 0x6f, 0xc9,
  65. 0xc6, 0xb9, 0xc7, 0xf1, 0xf3, 0x84, 0xfa, 0x08, 0x8d, 0x7c, 0x81, 0x56, 0x14, 0x69, 0xdb, 0x36,
  66. 0x9c, 0x77, 0x65, 0xf6, 0xec, 0xbc, 0x2b, 0xf3, 0xcf, 0x51, 0x7d, 0x57, 0xe6, 0x81, 0x0c, 0xfb,
  67. 0xae, 0xf1, 0x6d, 0x9b, 0xc5, 0x94, 0x61, 0xcc, 0x97, 0x2f, 0xf5, 0x0f, 0xa4, 0x63, 0x36, 0x1e,
  68. 0xdf, 0xca, 0x7e, 0x24, 0xbd, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0x8b, 0xb9, 0xc8, 0xf5, 0x5f,
  69. 0x09, 0x00, 0x00,
  70. }
  71. // Reference imports to suppress errors if they are not otherwise used.
  72. var _ context.Context
  73. var _ grpc.ClientConnInterface
  74. // This is a compile-time assertion to ensure that this generated file
  75. // is compatible with the grpc package it is being compiled against.
  76. const _ = grpc.SupportPackageIsVersion6
  77. // HouseholdClient is the client API for Household service.
  78. //
  79. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  80. type HouseholdClient interface {
  81. //
  82. Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error)
  83. // 获取业主的房屋
  84. HouseholdHouses(ctx context.Context, in *v1.HouseholdHousesRequest, opts ...grpc.CallOption) (*v1.HouseholdHousesReply, error)
  85. RealNameAuth(ctx context.Context, in *v1.RealNameAuthRequest, opts ...grpc.CallOption) (*v1.RealNameAuthReply, error)
  86. UserUpdateNickName(ctx context.Context, in *v1.UserUpdateNickNameRequest, opts ...grpc.CallOption) (*v1.UserUpdateNickNameReply, error)
  87. HouseholdApply(ctx context.Context, in *v1.HouseholdApplyRequest, opts ...grpc.CallOption) (*v1.HouseholdApplyReply, error)
  88. // 删除未审核的申请(小区被删,房屋被删,或房屋号信息被改)
  89. HouseholdDelApply(ctx context.Context, in *v1.HouseholdDelApplyRequest, opts ...grpc.CallOption) (*v1.HouseholdDelApplyReply, error)
  90. HouseholdApprove(ctx context.Context, in *v1.HouseholdApproveRequest, opts ...grpc.CallOption) (*v1.HouseholdApproveReply, error)
  91. HouseholdList(ctx context.Context, in *v1.HouseholdListRequest, opts ...grpc.CallOption) (*v1.HouseholdListReply, error)
  92. // 通过审核的业主信息列表
  93. HouseholdUserList(ctx context.Context, in *v1.HouseholdUserListRequest, opts ...grpc.CallOption) (*v1.HouseholdUserListReply, error)
  94. // 获取用户信息
  95. UserInfo(ctx context.Context, in *v1.UserInfoRequest, opts ...grpc.CallOption) (*v1.UserInfoReply, error)
  96. // 废弃
  97. HouseholdGardenNameChange(ctx context.Context, in *v1.HouseholdGardenNameChangeRequest, opts ...grpc.CallOption) (*v1.HouseholdGardenNameChangeReply, error)
  98. // 因房屋更新,需拒绝申请
  99. HouseholdRefuse(ctx context.Context, in *v1.HouseholdRefuseRequest, opts ...grpc.CallOption) (*v1.HouseholdRefuseReply, error)
  100. // 房屋租赁
  101. HouseRentApply(ctx context.Context, in *v1.HouseRentApplyRequest, opts ...grpc.CallOption) (*v1.HouseRentApplyReply, error)
  102. HouseRentApprove(ctx context.Context, in *v1.HouseRentApproveRequest, opts ...grpc.CallOption) (*v1.HouseRentApproveReply, error)
  103. HouseRentUpdate(ctx context.Context, in *v1.HouseRentUpdateRequest, opts ...grpc.CallOption) (*v1.HouseRentUpdateReply, error)
  104. HouseRentDown(ctx context.Context, in *v1.HouseRentDownRequest, opts ...grpc.CallOption) (*v1.HouseRentDownReply, error)
  105. HouseRentList(ctx context.Context, in *v1.HouseRentListRequest, opts ...grpc.CallOption) (*v1.HouseRentListReply, error)
  106. // 租房预约看房
  107. HouseRentAppointmentAdd(ctx context.Context, in *v1.HouseRentAppointmentAddRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentAddReply, error)
  108. // 租房预约列表
  109. HouseRentAppointmentList(ctx context.Context, in *v1.HouseRentAppointmentListRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentListReply, error)
  110. // 删除租房预约
  111. HouseRentAppointmentDel(ctx context.Context, in *v1.HouseRentAppointmentDelRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentDelReply, error)
  112. HouseRentAppointmentStatus(ctx context.Context, in *v1.HouseRentAppointmentStatusRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentStatusReply, error)
  113. // 因房屋,小区或单元信息变更需更新租房信息
  114. HouseRentChangeField(ctx context.Context, in *v1.HouseRentChangeFieldRequest, opts ...grpc.CallOption) (*v1.HouseRentChangeFieldReply, error)
  115. // 获取待审核的住户数量
  116. HouseholdWaitCount(ctx context.Context, in *v1.HouseholdWaitCountRequest, opts ...grpc.CallOption) (*v1.HouseholdWaitCountReply, error)
  117. // 添加用户公众号信息
  118. UserWxPublicAdd(ctx context.Context, in *v1.UserWxPublicAddRequest, opts ...grpc.CallOption) (*v1.UserWxPublicAddReply, error)
  119. // 对unionid为空的公众号账户获取unionid
  120. WxPublicEmptyUnionId(ctx context.Context, in *v1.WxPublicEmptyUnionIdRequest, opts ...grpc.CallOption) (*v1.WxPublicEmptyUnionIdReply, error)
  121. // 生成二维码
  122. GateQcode(ctx context.Context, in *v1.GateQcodeRequest, opts ...grpc.CallOption) (*v1.GateQcodeReply, error)
  123. // 住户退出房屋
  124. HouseholdDelHouse(ctx context.Context, in *v1.HouseholdDelHouseRequest, opts ...grpc.CallOption) (*v1.HouseholdDelHouseReply, error)
  125. }
  126. type householdClient struct {
  127. cc grpc.ClientConnInterface
  128. }
  129. func NewHouseholdClient(cc grpc.ClientConnInterface) HouseholdClient {
  130. return &householdClient{cc}
  131. }
  132. func (c *householdClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) {
  133. out := new(v1.LoginReply)
  134. err := c.cc.Invoke(ctx, "/pb.service.Household/Login", in, out, opts...)
  135. if err != nil {
  136. return nil, err
  137. }
  138. return out, nil
  139. }
  140. func (c *householdClient) HouseholdHouses(ctx context.Context, in *v1.HouseholdHousesRequest, opts ...grpc.CallOption) (*v1.HouseholdHousesReply, error) {
  141. out := new(v1.HouseholdHousesReply)
  142. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdHouses", in, out, opts...)
  143. if err != nil {
  144. return nil, err
  145. }
  146. return out, nil
  147. }
  148. func (c *householdClient) RealNameAuth(ctx context.Context, in *v1.RealNameAuthRequest, opts ...grpc.CallOption) (*v1.RealNameAuthReply, error) {
  149. out := new(v1.RealNameAuthReply)
  150. err := c.cc.Invoke(ctx, "/pb.service.Household/RealNameAuth", in, out, opts...)
  151. if err != nil {
  152. return nil, err
  153. }
  154. return out, nil
  155. }
  156. func (c *householdClient) UserUpdateNickName(ctx context.Context, in *v1.UserUpdateNickNameRequest, opts ...grpc.CallOption) (*v1.UserUpdateNickNameReply, error) {
  157. out := new(v1.UserUpdateNickNameReply)
  158. err := c.cc.Invoke(ctx, "/pb.service.Household/UserUpdateNickName", in, out, opts...)
  159. if err != nil {
  160. return nil, err
  161. }
  162. return out, nil
  163. }
  164. func (c *householdClient) HouseholdApply(ctx context.Context, in *v1.HouseholdApplyRequest, opts ...grpc.CallOption) (*v1.HouseholdApplyReply, error) {
  165. out := new(v1.HouseholdApplyReply)
  166. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdApply", in, out, opts...)
  167. if err != nil {
  168. return nil, err
  169. }
  170. return out, nil
  171. }
  172. func (c *householdClient) HouseholdDelApply(ctx context.Context, in *v1.HouseholdDelApplyRequest, opts ...grpc.CallOption) (*v1.HouseholdDelApplyReply, error) {
  173. out := new(v1.HouseholdDelApplyReply)
  174. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdDelApply", in, out, opts...)
  175. if err != nil {
  176. return nil, err
  177. }
  178. return out, nil
  179. }
  180. func (c *householdClient) HouseholdApprove(ctx context.Context, in *v1.HouseholdApproveRequest, opts ...grpc.CallOption) (*v1.HouseholdApproveReply, error) {
  181. out := new(v1.HouseholdApproveReply)
  182. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdApprove", in, out, opts...)
  183. if err != nil {
  184. return nil, err
  185. }
  186. return out, nil
  187. }
  188. func (c *householdClient) HouseholdList(ctx context.Context, in *v1.HouseholdListRequest, opts ...grpc.CallOption) (*v1.HouseholdListReply, error) {
  189. out := new(v1.HouseholdListReply)
  190. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdList", in, out, opts...)
  191. if err != nil {
  192. return nil, err
  193. }
  194. return out, nil
  195. }
  196. func (c *householdClient) HouseholdUserList(ctx context.Context, in *v1.HouseholdUserListRequest, opts ...grpc.CallOption) (*v1.HouseholdUserListReply, error) {
  197. out := new(v1.HouseholdUserListReply)
  198. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdUserList", in, out, opts...)
  199. if err != nil {
  200. return nil, err
  201. }
  202. return out, nil
  203. }
  204. func (c *householdClient) UserInfo(ctx context.Context, in *v1.UserInfoRequest, opts ...grpc.CallOption) (*v1.UserInfoReply, error) {
  205. out := new(v1.UserInfoReply)
  206. err := c.cc.Invoke(ctx, "/pb.service.Household/UserInfo", in, out, opts...)
  207. if err != nil {
  208. return nil, err
  209. }
  210. return out, nil
  211. }
  212. func (c *householdClient) HouseholdGardenNameChange(ctx context.Context, in *v1.HouseholdGardenNameChangeRequest, opts ...grpc.CallOption) (*v1.HouseholdGardenNameChangeReply, error) {
  213. out := new(v1.HouseholdGardenNameChangeReply)
  214. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdGardenNameChange", in, out, opts...)
  215. if err != nil {
  216. return nil, err
  217. }
  218. return out, nil
  219. }
  220. func (c *householdClient) HouseholdRefuse(ctx context.Context, in *v1.HouseholdRefuseRequest, opts ...grpc.CallOption) (*v1.HouseholdRefuseReply, error) {
  221. out := new(v1.HouseholdRefuseReply)
  222. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdRefuse", in, out, opts...)
  223. if err != nil {
  224. return nil, err
  225. }
  226. return out, nil
  227. }
  228. func (c *householdClient) HouseRentApply(ctx context.Context, in *v1.HouseRentApplyRequest, opts ...grpc.CallOption) (*v1.HouseRentApplyReply, error) {
  229. out := new(v1.HouseRentApplyReply)
  230. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentApply", in, out, opts...)
  231. if err != nil {
  232. return nil, err
  233. }
  234. return out, nil
  235. }
  236. func (c *householdClient) HouseRentApprove(ctx context.Context, in *v1.HouseRentApproveRequest, opts ...grpc.CallOption) (*v1.HouseRentApproveReply, error) {
  237. out := new(v1.HouseRentApproveReply)
  238. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentApprove", in, out, opts...)
  239. if err != nil {
  240. return nil, err
  241. }
  242. return out, nil
  243. }
  244. func (c *householdClient) HouseRentUpdate(ctx context.Context, in *v1.HouseRentUpdateRequest, opts ...grpc.CallOption) (*v1.HouseRentUpdateReply, error) {
  245. out := new(v1.HouseRentUpdateReply)
  246. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentUpdate", in, out, opts...)
  247. if err != nil {
  248. return nil, err
  249. }
  250. return out, nil
  251. }
  252. func (c *householdClient) HouseRentDown(ctx context.Context, in *v1.HouseRentDownRequest, opts ...grpc.CallOption) (*v1.HouseRentDownReply, error) {
  253. out := new(v1.HouseRentDownReply)
  254. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentDown", in, out, opts...)
  255. if err != nil {
  256. return nil, err
  257. }
  258. return out, nil
  259. }
  260. func (c *householdClient) HouseRentList(ctx context.Context, in *v1.HouseRentListRequest, opts ...grpc.CallOption) (*v1.HouseRentListReply, error) {
  261. out := new(v1.HouseRentListReply)
  262. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentList", in, out, opts...)
  263. if err != nil {
  264. return nil, err
  265. }
  266. return out, nil
  267. }
  268. func (c *householdClient) HouseRentAppointmentAdd(ctx context.Context, in *v1.HouseRentAppointmentAddRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentAddReply, error) {
  269. out := new(v1.HouseRentAppointmentAddReply)
  270. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentAppointmentAdd", in, out, opts...)
  271. if err != nil {
  272. return nil, err
  273. }
  274. return out, nil
  275. }
  276. func (c *householdClient) HouseRentAppointmentList(ctx context.Context, in *v1.HouseRentAppointmentListRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentListReply, error) {
  277. out := new(v1.HouseRentAppointmentListReply)
  278. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentAppointmentList", in, out, opts...)
  279. if err != nil {
  280. return nil, err
  281. }
  282. return out, nil
  283. }
  284. func (c *householdClient) HouseRentAppointmentDel(ctx context.Context, in *v1.HouseRentAppointmentDelRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentDelReply, error) {
  285. out := new(v1.HouseRentAppointmentDelReply)
  286. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentAppointmentDel", in, out, opts...)
  287. if err != nil {
  288. return nil, err
  289. }
  290. return out, nil
  291. }
  292. func (c *householdClient) HouseRentAppointmentStatus(ctx context.Context, in *v1.HouseRentAppointmentStatusRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentStatusReply, error) {
  293. out := new(v1.HouseRentAppointmentStatusReply)
  294. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentAppointmentStatus", in, out, opts...)
  295. if err != nil {
  296. return nil, err
  297. }
  298. return out, nil
  299. }
  300. func (c *householdClient) HouseRentChangeField(ctx context.Context, in *v1.HouseRentChangeFieldRequest, opts ...grpc.CallOption) (*v1.HouseRentChangeFieldReply, error) {
  301. out := new(v1.HouseRentChangeFieldReply)
  302. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentChangeField", in, out, opts...)
  303. if err != nil {
  304. return nil, err
  305. }
  306. return out, nil
  307. }
  308. func (c *householdClient) HouseholdWaitCount(ctx context.Context, in *v1.HouseholdWaitCountRequest, opts ...grpc.CallOption) (*v1.HouseholdWaitCountReply, error) {
  309. out := new(v1.HouseholdWaitCountReply)
  310. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdWaitCount", in, out, opts...)
  311. if err != nil {
  312. return nil, err
  313. }
  314. return out, nil
  315. }
  316. func (c *householdClient) UserWxPublicAdd(ctx context.Context, in *v1.UserWxPublicAddRequest, opts ...grpc.CallOption) (*v1.UserWxPublicAddReply, error) {
  317. out := new(v1.UserWxPublicAddReply)
  318. err := c.cc.Invoke(ctx, "/pb.service.Household/UserWxPublicAdd", in, out, opts...)
  319. if err != nil {
  320. return nil, err
  321. }
  322. return out, nil
  323. }
  324. func (c *householdClient) WxPublicEmptyUnionId(ctx context.Context, in *v1.WxPublicEmptyUnionIdRequest, opts ...grpc.CallOption) (*v1.WxPublicEmptyUnionIdReply, error) {
  325. out := new(v1.WxPublicEmptyUnionIdReply)
  326. err := c.cc.Invoke(ctx, "/pb.service.Household/WxPublicEmptyUnionId", in, out, opts...)
  327. if err != nil {
  328. return nil, err
  329. }
  330. return out, nil
  331. }
  332. func (c *householdClient) GateQcode(ctx context.Context, in *v1.GateQcodeRequest, opts ...grpc.CallOption) (*v1.GateQcodeReply, error) {
  333. out := new(v1.GateQcodeReply)
  334. err := c.cc.Invoke(ctx, "/pb.service.Household/GateQcode", in, out, opts...)
  335. if err != nil {
  336. return nil, err
  337. }
  338. return out, nil
  339. }
  340. func (c *householdClient) HouseholdDelHouse(ctx context.Context, in *v1.HouseholdDelHouseRequest, opts ...grpc.CallOption) (*v1.HouseholdDelHouseReply, error) {
  341. out := new(v1.HouseholdDelHouseReply)
  342. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdDelHouse", in, out, opts...)
  343. if err != nil {
  344. return nil, err
  345. }
  346. return out, nil
  347. }
  348. // HouseholdServer is the server API for Household service.
  349. type HouseholdServer interface {
  350. //
  351. Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
  352. // 获取业主的房屋
  353. HouseholdHouses(context.Context, *v1.HouseholdHousesRequest) (*v1.HouseholdHousesReply, error)
  354. RealNameAuth(context.Context, *v1.RealNameAuthRequest) (*v1.RealNameAuthReply, error)
  355. UserUpdateNickName(context.Context, *v1.UserUpdateNickNameRequest) (*v1.UserUpdateNickNameReply, error)
  356. HouseholdApply(context.Context, *v1.HouseholdApplyRequest) (*v1.HouseholdApplyReply, error)
  357. // 删除未审核的申请(小区被删,房屋被删,或房屋号信息被改)
  358. HouseholdDelApply(context.Context, *v1.HouseholdDelApplyRequest) (*v1.HouseholdDelApplyReply, error)
  359. HouseholdApprove(context.Context, *v1.HouseholdApproveRequest) (*v1.HouseholdApproveReply, error)
  360. HouseholdList(context.Context, *v1.HouseholdListRequest) (*v1.HouseholdListReply, error)
  361. // 通过审核的业主信息列表
  362. HouseholdUserList(context.Context, *v1.HouseholdUserListRequest) (*v1.HouseholdUserListReply, error)
  363. // 获取用户信息
  364. UserInfo(context.Context, *v1.UserInfoRequest) (*v1.UserInfoReply, error)
  365. // 废弃
  366. HouseholdGardenNameChange(context.Context, *v1.HouseholdGardenNameChangeRequest) (*v1.HouseholdGardenNameChangeReply, error)
  367. // 因房屋更新,需拒绝申请
  368. HouseholdRefuse(context.Context, *v1.HouseholdRefuseRequest) (*v1.HouseholdRefuseReply, error)
  369. // 房屋租赁
  370. HouseRentApply(context.Context, *v1.HouseRentApplyRequest) (*v1.HouseRentApplyReply, error)
  371. HouseRentApprove(context.Context, *v1.HouseRentApproveRequest) (*v1.HouseRentApproveReply, error)
  372. HouseRentUpdate(context.Context, *v1.HouseRentUpdateRequest) (*v1.HouseRentUpdateReply, error)
  373. HouseRentDown(context.Context, *v1.HouseRentDownRequest) (*v1.HouseRentDownReply, error)
  374. HouseRentList(context.Context, *v1.HouseRentListRequest) (*v1.HouseRentListReply, error)
  375. // 租房预约看房
  376. HouseRentAppointmentAdd(context.Context, *v1.HouseRentAppointmentAddRequest) (*v1.HouseRentAppointmentAddReply, error)
  377. // 租房预约列表
  378. HouseRentAppointmentList(context.Context, *v1.HouseRentAppointmentListRequest) (*v1.HouseRentAppointmentListReply, error)
  379. // 删除租房预约
  380. HouseRentAppointmentDel(context.Context, *v1.HouseRentAppointmentDelRequest) (*v1.HouseRentAppointmentDelReply, error)
  381. HouseRentAppointmentStatus(context.Context, *v1.HouseRentAppointmentStatusRequest) (*v1.HouseRentAppointmentStatusReply, error)
  382. // 因房屋,小区或单元信息变更需更新租房信息
  383. HouseRentChangeField(context.Context, *v1.HouseRentChangeFieldRequest) (*v1.HouseRentChangeFieldReply, error)
  384. // 获取待审核的住户数量
  385. HouseholdWaitCount(context.Context, *v1.HouseholdWaitCountRequest) (*v1.HouseholdWaitCountReply, error)
  386. // 添加用户公众号信息
  387. UserWxPublicAdd(context.Context, *v1.UserWxPublicAddRequest) (*v1.UserWxPublicAddReply, error)
  388. // 对unionid为空的公众号账户获取unionid
  389. WxPublicEmptyUnionId(context.Context, *v1.WxPublicEmptyUnionIdRequest) (*v1.WxPublicEmptyUnionIdReply, error)
  390. // 生成二维码
  391. GateQcode(context.Context, *v1.GateQcodeRequest) (*v1.GateQcodeReply, error)
  392. // 住户退出房屋
  393. HouseholdDelHouse(context.Context, *v1.HouseholdDelHouseRequest) (*v1.HouseholdDelHouseReply, error)
  394. }
  395. // UnimplementedHouseholdServer can be embedded to have forward compatible implementations.
  396. type UnimplementedHouseholdServer struct {
  397. }
  398. func (*UnimplementedHouseholdServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
  399. return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
  400. }
  401. func (*UnimplementedHouseholdServer) HouseholdHouses(ctx context.Context, req *v1.HouseholdHousesRequest) (*v1.HouseholdHousesReply, error) {
  402. return nil, status.Errorf(codes.Unimplemented, "method HouseholdHouses not implemented")
  403. }
  404. func (*UnimplementedHouseholdServer) RealNameAuth(ctx context.Context, req *v1.RealNameAuthRequest) (*v1.RealNameAuthReply, error) {
  405. return nil, status.Errorf(codes.Unimplemented, "method RealNameAuth not implemented")
  406. }
  407. func (*UnimplementedHouseholdServer) UserUpdateNickName(ctx context.Context, req *v1.UserUpdateNickNameRequest) (*v1.UserUpdateNickNameReply, error) {
  408. return nil, status.Errorf(codes.Unimplemented, "method UserUpdateNickName not implemented")
  409. }
  410. func (*UnimplementedHouseholdServer) HouseholdApply(ctx context.Context, req *v1.HouseholdApplyRequest) (*v1.HouseholdApplyReply, error) {
  411. return nil, status.Errorf(codes.Unimplemented, "method HouseholdApply not implemented")
  412. }
  413. func (*UnimplementedHouseholdServer) HouseholdDelApply(ctx context.Context, req *v1.HouseholdDelApplyRequest) (*v1.HouseholdDelApplyReply, error) {
  414. return nil, status.Errorf(codes.Unimplemented, "method HouseholdDelApply not implemented")
  415. }
  416. func (*UnimplementedHouseholdServer) HouseholdApprove(ctx context.Context, req *v1.HouseholdApproveRequest) (*v1.HouseholdApproveReply, error) {
  417. return nil, status.Errorf(codes.Unimplemented, "method HouseholdApprove not implemented")
  418. }
  419. func (*UnimplementedHouseholdServer) HouseholdList(ctx context.Context, req *v1.HouseholdListRequest) (*v1.HouseholdListReply, error) {
  420. return nil, status.Errorf(codes.Unimplemented, "method HouseholdList not implemented")
  421. }
  422. func (*UnimplementedHouseholdServer) HouseholdUserList(ctx context.Context, req *v1.HouseholdUserListRequest) (*v1.HouseholdUserListReply, error) {
  423. return nil, status.Errorf(codes.Unimplemented, "method HouseholdUserList not implemented")
  424. }
  425. func (*UnimplementedHouseholdServer) UserInfo(ctx context.Context, req *v1.UserInfoRequest) (*v1.UserInfoReply, error) {
  426. return nil, status.Errorf(codes.Unimplemented, "method UserInfo not implemented")
  427. }
  428. func (*UnimplementedHouseholdServer) HouseholdGardenNameChange(ctx context.Context, req *v1.HouseholdGardenNameChangeRequest) (*v1.HouseholdGardenNameChangeReply, error) {
  429. return nil, status.Errorf(codes.Unimplemented, "method HouseholdGardenNameChange not implemented")
  430. }
  431. func (*UnimplementedHouseholdServer) HouseholdRefuse(ctx context.Context, req *v1.HouseholdRefuseRequest) (*v1.HouseholdRefuseReply, error) {
  432. return nil, status.Errorf(codes.Unimplemented, "method HouseholdRefuse not implemented")
  433. }
  434. func (*UnimplementedHouseholdServer) HouseRentApply(ctx context.Context, req *v1.HouseRentApplyRequest) (*v1.HouseRentApplyReply, error) {
  435. return nil, status.Errorf(codes.Unimplemented, "method HouseRentApply not implemented")
  436. }
  437. func (*UnimplementedHouseholdServer) HouseRentApprove(ctx context.Context, req *v1.HouseRentApproveRequest) (*v1.HouseRentApproveReply, error) {
  438. return nil, status.Errorf(codes.Unimplemented, "method HouseRentApprove not implemented")
  439. }
  440. func (*UnimplementedHouseholdServer) HouseRentUpdate(ctx context.Context, req *v1.HouseRentUpdateRequest) (*v1.HouseRentUpdateReply, error) {
  441. return nil, status.Errorf(codes.Unimplemented, "method HouseRentUpdate not implemented")
  442. }
  443. func (*UnimplementedHouseholdServer) HouseRentDown(ctx context.Context, req *v1.HouseRentDownRequest) (*v1.HouseRentDownReply, error) {
  444. return nil, status.Errorf(codes.Unimplemented, "method HouseRentDown not implemented")
  445. }
  446. func (*UnimplementedHouseholdServer) HouseRentList(ctx context.Context, req *v1.HouseRentListRequest) (*v1.HouseRentListReply, error) {
  447. return nil, status.Errorf(codes.Unimplemented, "method HouseRentList not implemented")
  448. }
  449. func (*UnimplementedHouseholdServer) HouseRentAppointmentAdd(ctx context.Context, req *v1.HouseRentAppointmentAddRequest) (*v1.HouseRentAppointmentAddReply, error) {
  450. return nil, status.Errorf(codes.Unimplemented, "method HouseRentAppointmentAdd not implemented")
  451. }
  452. func (*UnimplementedHouseholdServer) HouseRentAppointmentList(ctx context.Context, req *v1.HouseRentAppointmentListRequest) (*v1.HouseRentAppointmentListReply, error) {
  453. return nil, status.Errorf(codes.Unimplemented, "method HouseRentAppointmentList not implemented")
  454. }
  455. func (*UnimplementedHouseholdServer) HouseRentAppointmentDel(ctx context.Context, req *v1.HouseRentAppointmentDelRequest) (*v1.HouseRentAppointmentDelReply, error) {
  456. return nil, status.Errorf(codes.Unimplemented, "method HouseRentAppointmentDel not implemented")
  457. }
  458. func (*UnimplementedHouseholdServer) HouseRentAppointmentStatus(ctx context.Context, req *v1.HouseRentAppointmentStatusRequest) (*v1.HouseRentAppointmentStatusReply, error) {
  459. return nil, status.Errorf(codes.Unimplemented, "method HouseRentAppointmentStatus not implemented")
  460. }
  461. func (*UnimplementedHouseholdServer) HouseRentChangeField(ctx context.Context, req *v1.HouseRentChangeFieldRequest) (*v1.HouseRentChangeFieldReply, error) {
  462. return nil, status.Errorf(codes.Unimplemented, "method HouseRentChangeField not implemented")
  463. }
  464. func (*UnimplementedHouseholdServer) HouseholdWaitCount(ctx context.Context, req *v1.HouseholdWaitCountRequest) (*v1.HouseholdWaitCountReply, error) {
  465. return nil, status.Errorf(codes.Unimplemented, "method HouseholdWaitCount not implemented")
  466. }
  467. func (*UnimplementedHouseholdServer) UserWxPublicAdd(ctx context.Context, req *v1.UserWxPublicAddRequest) (*v1.UserWxPublicAddReply, error) {
  468. return nil, status.Errorf(codes.Unimplemented, "method UserWxPublicAdd not implemented")
  469. }
  470. func (*UnimplementedHouseholdServer) WxPublicEmptyUnionId(ctx context.Context, req *v1.WxPublicEmptyUnionIdRequest) (*v1.WxPublicEmptyUnionIdReply, error) {
  471. return nil, status.Errorf(codes.Unimplemented, "method WxPublicEmptyUnionId not implemented")
  472. }
  473. func (*UnimplementedHouseholdServer) GateQcode(ctx context.Context, req *v1.GateQcodeRequest) (*v1.GateQcodeReply, error) {
  474. return nil, status.Errorf(codes.Unimplemented, "method GateQcode not implemented")
  475. }
  476. func (*UnimplementedHouseholdServer) HouseholdDelHouse(ctx context.Context, req *v1.HouseholdDelHouseRequest) (*v1.HouseholdDelHouseReply, error) {
  477. return nil, status.Errorf(codes.Unimplemented, "method HouseholdDelHouse not implemented")
  478. }
  479. func RegisterHouseholdServer(s *grpc.Server, srv HouseholdServer) {
  480. s.RegisterService(&_Household_serviceDesc, srv)
  481. }
  482. func _Household_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  483. in := new(v1.LoginRequest)
  484. if err := dec(in); err != nil {
  485. return nil, err
  486. }
  487. if interceptor == nil {
  488. return srv.(HouseholdServer).Login(ctx, in)
  489. }
  490. info := &grpc.UnaryServerInfo{
  491. Server: srv,
  492. FullMethod: "/pb.service.Household/Login",
  493. }
  494. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  495. return srv.(HouseholdServer).Login(ctx, req.(*v1.LoginRequest))
  496. }
  497. return interceptor(ctx, in, info, handler)
  498. }
  499. func _Household_HouseholdHouses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  500. in := new(v1.HouseholdHousesRequest)
  501. if err := dec(in); err != nil {
  502. return nil, err
  503. }
  504. if interceptor == nil {
  505. return srv.(HouseholdServer).HouseholdHouses(ctx, in)
  506. }
  507. info := &grpc.UnaryServerInfo{
  508. Server: srv,
  509. FullMethod: "/pb.service.Household/HouseholdHouses",
  510. }
  511. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  512. return srv.(HouseholdServer).HouseholdHouses(ctx, req.(*v1.HouseholdHousesRequest))
  513. }
  514. return interceptor(ctx, in, info, handler)
  515. }
  516. func _Household_RealNameAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  517. in := new(v1.RealNameAuthRequest)
  518. if err := dec(in); err != nil {
  519. return nil, err
  520. }
  521. if interceptor == nil {
  522. return srv.(HouseholdServer).RealNameAuth(ctx, in)
  523. }
  524. info := &grpc.UnaryServerInfo{
  525. Server: srv,
  526. FullMethod: "/pb.service.Household/RealNameAuth",
  527. }
  528. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  529. return srv.(HouseholdServer).RealNameAuth(ctx, req.(*v1.RealNameAuthRequest))
  530. }
  531. return interceptor(ctx, in, info, handler)
  532. }
  533. func _Household_UserUpdateNickName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  534. in := new(v1.UserUpdateNickNameRequest)
  535. if err := dec(in); err != nil {
  536. return nil, err
  537. }
  538. if interceptor == nil {
  539. return srv.(HouseholdServer).UserUpdateNickName(ctx, in)
  540. }
  541. info := &grpc.UnaryServerInfo{
  542. Server: srv,
  543. FullMethod: "/pb.service.Household/UserUpdateNickName",
  544. }
  545. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  546. return srv.(HouseholdServer).UserUpdateNickName(ctx, req.(*v1.UserUpdateNickNameRequest))
  547. }
  548. return interceptor(ctx, in, info, handler)
  549. }
  550. func _Household_HouseholdApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  551. in := new(v1.HouseholdApplyRequest)
  552. if err := dec(in); err != nil {
  553. return nil, err
  554. }
  555. if interceptor == nil {
  556. return srv.(HouseholdServer).HouseholdApply(ctx, in)
  557. }
  558. info := &grpc.UnaryServerInfo{
  559. Server: srv,
  560. FullMethod: "/pb.service.Household/HouseholdApply",
  561. }
  562. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  563. return srv.(HouseholdServer).HouseholdApply(ctx, req.(*v1.HouseholdApplyRequest))
  564. }
  565. return interceptor(ctx, in, info, handler)
  566. }
  567. func _Household_HouseholdDelApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  568. in := new(v1.HouseholdDelApplyRequest)
  569. if err := dec(in); err != nil {
  570. return nil, err
  571. }
  572. if interceptor == nil {
  573. return srv.(HouseholdServer).HouseholdDelApply(ctx, in)
  574. }
  575. info := &grpc.UnaryServerInfo{
  576. Server: srv,
  577. FullMethod: "/pb.service.Household/HouseholdDelApply",
  578. }
  579. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  580. return srv.(HouseholdServer).HouseholdDelApply(ctx, req.(*v1.HouseholdDelApplyRequest))
  581. }
  582. return interceptor(ctx, in, info, handler)
  583. }
  584. func _Household_HouseholdApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  585. in := new(v1.HouseholdApproveRequest)
  586. if err := dec(in); err != nil {
  587. return nil, err
  588. }
  589. if interceptor == nil {
  590. return srv.(HouseholdServer).HouseholdApprove(ctx, in)
  591. }
  592. info := &grpc.UnaryServerInfo{
  593. Server: srv,
  594. FullMethod: "/pb.service.Household/HouseholdApprove",
  595. }
  596. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  597. return srv.(HouseholdServer).HouseholdApprove(ctx, req.(*v1.HouseholdApproveRequest))
  598. }
  599. return interceptor(ctx, in, info, handler)
  600. }
  601. func _Household_HouseholdList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  602. in := new(v1.HouseholdListRequest)
  603. if err := dec(in); err != nil {
  604. return nil, err
  605. }
  606. if interceptor == nil {
  607. return srv.(HouseholdServer).HouseholdList(ctx, in)
  608. }
  609. info := &grpc.UnaryServerInfo{
  610. Server: srv,
  611. FullMethod: "/pb.service.Household/HouseholdList",
  612. }
  613. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  614. return srv.(HouseholdServer).HouseholdList(ctx, req.(*v1.HouseholdListRequest))
  615. }
  616. return interceptor(ctx, in, info, handler)
  617. }
  618. func _Household_HouseholdUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  619. in := new(v1.HouseholdUserListRequest)
  620. if err := dec(in); err != nil {
  621. return nil, err
  622. }
  623. if interceptor == nil {
  624. return srv.(HouseholdServer).HouseholdUserList(ctx, in)
  625. }
  626. info := &grpc.UnaryServerInfo{
  627. Server: srv,
  628. FullMethod: "/pb.service.Household/HouseholdUserList",
  629. }
  630. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  631. return srv.(HouseholdServer).HouseholdUserList(ctx, req.(*v1.HouseholdUserListRequest))
  632. }
  633. return interceptor(ctx, in, info, handler)
  634. }
  635. func _Household_UserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  636. in := new(v1.UserInfoRequest)
  637. if err := dec(in); err != nil {
  638. return nil, err
  639. }
  640. if interceptor == nil {
  641. return srv.(HouseholdServer).UserInfo(ctx, in)
  642. }
  643. info := &grpc.UnaryServerInfo{
  644. Server: srv,
  645. FullMethod: "/pb.service.Household/UserInfo",
  646. }
  647. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  648. return srv.(HouseholdServer).UserInfo(ctx, req.(*v1.UserInfoRequest))
  649. }
  650. return interceptor(ctx, in, info, handler)
  651. }
  652. func _Household_HouseholdGardenNameChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  653. in := new(v1.HouseholdGardenNameChangeRequest)
  654. if err := dec(in); err != nil {
  655. return nil, err
  656. }
  657. if interceptor == nil {
  658. return srv.(HouseholdServer).HouseholdGardenNameChange(ctx, in)
  659. }
  660. info := &grpc.UnaryServerInfo{
  661. Server: srv,
  662. FullMethod: "/pb.service.Household/HouseholdGardenNameChange",
  663. }
  664. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  665. return srv.(HouseholdServer).HouseholdGardenNameChange(ctx, req.(*v1.HouseholdGardenNameChangeRequest))
  666. }
  667. return interceptor(ctx, in, info, handler)
  668. }
  669. func _Household_HouseholdRefuse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  670. in := new(v1.HouseholdRefuseRequest)
  671. if err := dec(in); err != nil {
  672. return nil, err
  673. }
  674. if interceptor == nil {
  675. return srv.(HouseholdServer).HouseholdRefuse(ctx, in)
  676. }
  677. info := &grpc.UnaryServerInfo{
  678. Server: srv,
  679. FullMethod: "/pb.service.Household/HouseholdRefuse",
  680. }
  681. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  682. return srv.(HouseholdServer).HouseholdRefuse(ctx, req.(*v1.HouseholdRefuseRequest))
  683. }
  684. return interceptor(ctx, in, info, handler)
  685. }
  686. func _Household_HouseRentApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  687. in := new(v1.HouseRentApplyRequest)
  688. if err := dec(in); err != nil {
  689. return nil, err
  690. }
  691. if interceptor == nil {
  692. return srv.(HouseholdServer).HouseRentApply(ctx, in)
  693. }
  694. info := &grpc.UnaryServerInfo{
  695. Server: srv,
  696. FullMethod: "/pb.service.Household/HouseRentApply",
  697. }
  698. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  699. return srv.(HouseholdServer).HouseRentApply(ctx, req.(*v1.HouseRentApplyRequest))
  700. }
  701. return interceptor(ctx, in, info, handler)
  702. }
  703. func _Household_HouseRentApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  704. in := new(v1.HouseRentApproveRequest)
  705. if err := dec(in); err != nil {
  706. return nil, err
  707. }
  708. if interceptor == nil {
  709. return srv.(HouseholdServer).HouseRentApprove(ctx, in)
  710. }
  711. info := &grpc.UnaryServerInfo{
  712. Server: srv,
  713. FullMethod: "/pb.service.Household/HouseRentApprove",
  714. }
  715. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  716. return srv.(HouseholdServer).HouseRentApprove(ctx, req.(*v1.HouseRentApproveRequest))
  717. }
  718. return interceptor(ctx, in, info, handler)
  719. }
  720. func _Household_HouseRentUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  721. in := new(v1.HouseRentUpdateRequest)
  722. if err := dec(in); err != nil {
  723. return nil, err
  724. }
  725. if interceptor == nil {
  726. return srv.(HouseholdServer).HouseRentUpdate(ctx, in)
  727. }
  728. info := &grpc.UnaryServerInfo{
  729. Server: srv,
  730. FullMethod: "/pb.service.Household/HouseRentUpdate",
  731. }
  732. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  733. return srv.(HouseholdServer).HouseRentUpdate(ctx, req.(*v1.HouseRentUpdateRequest))
  734. }
  735. return interceptor(ctx, in, info, handler)
  736. }
  737. func _Household_HouseRentDown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  738. in := new(v1.HouseRentDownRequest)
  739. if err := dec(in); err != nil {
  740. return nil, err
  741. }
  742. if interceptor == nil {
  743. return srv.(HouseholdServer).HouseRentDown(ctx, in)
  744. }
  745. info := &grpc.UnaryServerInfo{
  746. Server: srv,
  747. FullMethod: "/pb.service.Household/HouseRentDown",
  748. }
  749. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  750. return srv.(HouseholdServer).HouseRentDown(ctx, req.(*v1.HouseRentDownRequest))
  751. }
  752. return interceptor(ctx, in, info, handler)
  753. }
  754. func _Household_HouseRentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  755. in := new(v1.HouseRentListRequest)
  756. if err := dec(in); err != nil {
  757. return nil, err
  758. }
  759. if interceptor == nil {
  760. return srv.(HouseholdServer).HouseRentList(ctx, in)
  761. }
  762. info := &grpc.UnaryServerInfo{
  763. Server: srv,
  764. FullMethod: "/pb.service.Household/HouseRentList",
  765. }
  766. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  767. return srv.(HouseholdServer).HouseRentList(ctx, req.(*v1.HouseRentListRequest))
  768. }
  769. return interceptor(ctx, in, info, handler)
  770. }
  771. func _Household_HouseRentAppointmentAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  772. in := new(v1.HouseRentAppointmentAddRequest)
  773. if err := dec(in); err != nil {
  774. return nil, err
  775. }
  776. if interceptor == nil {
  777. return srv.(HouseholdServer).HouseRentAppointmentAdd(ctx, in)
  778. }
  779. info := &grpc.UnaryServerInfo{
  780. Server: srv,
  781. FullMethod: "/pb.service.Household/HouseRentAppointmentAdd",
  782. }
  783. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  784. return srv.(HouseholdServer).HouseRentAppointmentAdd(ctx, req.(*v1.HouseRentAppointmentAddRequest))
  785. }
  786. return interceptor(ctx, in, info, handler)
  787. }
  788. func _Household_HouseRentAppointmentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  789. in := new(v1.HouseRentAppointmentListRequest)
  790. if err := dec(in); err != nil {
  791. return nil, err
  792. }
  793. if interceptor == nil {
  794. return srv.(HouseholdServer).HouseRentAppointmentList(ctx, in)
  795. }
  796. info := &grpc.UnaryServerInfo{
  797. Server: srv,
  798. FullMethod: "/pb.service.Household/HouseRentAppointmentList",
  799. }
  800. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  801. return srv.(HouseholdServer).HouseRentAppointmentList(ctx, req.(*v1.HouseRentAppointmentListRequest))
  802. }
  803. return interceptor(ctx, in, info, handler)
  804. }
  805. func _Household_HouseRentAppointmentDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  806. in := new(v1.HouseRentAppointmentDelRequest)
  807. if err := dec(in); err != nil {
  808. return nil, err
  809. }
  810. if interceptor == nil {
  811. return srv.(HouseholdServer).HouseRentAppointmentDel(ctx, in)
  812. }
  813. info := &grpc.UnaryServerInfo{
  814. Server: srv,
  815. FullMethod: "/pb.service.Household/HouseRentAppointmentDel",
  816. }
  817. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  818. return srv.(HouseholdServer).HouseRentAppointmentDel(ctx, req.(*v1.HouseRentAppointmentDelRequest))
  819. }
  820. return interceptor(ctx, in, info, handler)
  821. }
  822. func _Household_HouseRentAppointmentStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  823. in := new(v1.HouseRentAppointmentStatusRequest)
  824. if err := dec(in); err != nil {
  825. return nil, err
  826. }
  827. if interceptor == nil {
  828. return srv.(HouseholdServer).HouseRentAppointmentStatus(ctx, in)
  829. }
  830. info := &grpc.UnaryServerInfo{
  831. Server: srv,
  832. FullMethod: "/pb.service.Household/HouseRentAppointmentStatus",
  833. }
  834. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  835. return srv.(HouseholdServer).HouseRentAppointmentStatus(ctx, req.(*v1.HouseRentAppointmentStatusRequest))
  836. }
  837. return interceptor(ctx, in, info, handler)
  838. }
  839. func _Household_HouseRentChangeField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  840. in := new(v1.HouseRentChangeFieldRequest)
  841. if err := dec(in); err != nil {
  842. return nil, err
  843. }
  844. if interceptor == nil {
  845. return srv.(HouseholdServer).HouseRentChangeField(ctx, in)
  846. }
  847. info := &grpc.UnaryServerInfo{
  848. Server: srv,
  849. FullMethod: "/pb.service.Household/HouseRentChangeField",
  850. }
  851. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  852. return srv.(HouseholdServer).HouseRentChangeField(ctx, req.(*v1.HouseRentChangeFieldRequest))
  853. }
  854. return interceptor(ctx, in, info, handler)
  855. }
  856. func _Household_HouseholdWaitCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  857. in := new(v1.HouseholdWaitCountRequest)
  858. if err := dec(in); err != nil {
  859. return nil, err
  860. }
  861. if interceptor == nil {
  862. return srv.(HouseholdServer).HouseholdWaitCount(ctx, in)
  863. }
  864. info := &grpc.UnaryServerInfo{
  865. Server: srv,
  866. FullMethod: "/pb.service.Household/HouseholdWaitCount",
  867. }
  868. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  869. return srv.(HouseholdServer).HouseholdWaitCount(ctx, req.(*v1.HouseholdWaitCountRequest))
  870. }
  871. return interceptor(ctx, in, info, handler)
  872. }
  873. func _Household_UserWxPublicAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  874. in := new(v1.UserWxPublicAddRequest)
  875. if err := dec(in); err != nil {
  876. return nil, err
  877. }
  878. if interceptor == nil {
  879. return srv.(HouseholdServer).UserWxPublicAdd(ctx, in)
  880. }
  881. info := &grpc.UnaryServerInfo{
  882. Server: srv,
  883. FullMethod: "/pb.service.Household/UserWxPublicAdd",
  884. }
  885. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  886. return srv.(HouseholdServer).UserWxPublicAdd(ctx, req.(*v1.UserWxPublicAddRequest))
  887. }
  888. return interceptor(ctx, in, info, handler)
  889. }
  890. func _Household_WxPublicEmptyUnionId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  891. in := new(v1.WxPublicEmptyUnionIdRequest)
  892. if err := dec(in); err != nil {
  893. return nil, err
  894. }
  895. if interceptor == nil {
  896. return srv.(HouseholdServer).WxPublicEmptyUnionId(ctx, in)
  897. }
  898. info := &grpc.UnaryServerInfo{
  899. Server: srv,
  900. FullMethod: "/pb.service.Household/WxPublicEmptyUnionId",
  901. }
  902. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  903. return srv.(HouseholdServer).WxPublicEmptyUnionId(ctx, req.(*v1.WxPublicEmptyUnionIdRequest))
  904. }
  905. return interceptor(ctx, in, info, handler)
  906. }
  907. func _Household_GateQcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  908. in := new(v1.GateQcodeRequest)
  909. if err := dec(in); err != nil {
  910. return nil, err
  911. }
  912. if interceptor == nil {
  913. return srv.(HouseholdServer).GateQcode(ctx, in)
  914. }
  915. info := &grpc.UnaryServerInfo{
  916. Server: srv,
  917. FullMethod: "/pb.service.Household/GateQcode",
  918. }
  919. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  920. return srv.(HouseholdServer).GateQcode(ctx, req.(*v1.GateQcodeRequest))
  921. }
  922. return interceptor(ctx, in, info, handler)
  923. }
  924. func _Household_HouseholdDelHouse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  925. in := new(v1.HouseholdDelHouseRequest)
  926. if err := dec(in); err != nil {
  927. return nil, err
  928. }
  929. if interceptor == nil {
  930. return srv.(HouseholdServer).HouseholdDelHouse(ctx, in)
  931. }
  932. info := &grpc.UnaryServerInfo{
  933. Server: srv,
  934. FullMethod: "/pb.service.Household/HouseholdDelHouse",
  935. }
  936. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  937. return srv.(HouseholdServer).HouseholdDelHouse(ctx, req.(*v1.HouseholdDelHouseRequest))
  938. }
  939. return interceptor(ctx, in, info, handler)
  940. }
  941. var _Household_serviceDesc = grpc.ServiceDesc{
  942. ServiceName: "pb.service.Household",
  943. HandlerType: (*HouseholdServer)(nil),
  944. Methods: []grpc.MethodDesc{
  945. {
  946. MethodName: "Login",
  947. Handler: _Household_Login_Handler,
  948. },
  949. {
  950. MethodName: "HouseholdHouses",
  951. Handler: _Household_HouseholdHouses_Handler,
  952. },
  953. {
  954. MethodName: "RealNameAuth",
  955. Handler: _Household_RealNameAuth_Handler,
  956. },
  957. {
  958. MethodName: "UserUpdateNickName",
  959. Handler: _Household_UserUpdateNickName_Handler,
  960. },
  961. {
  962. MethodName: "HouseholdApply",
  963. Handler: _Household_HouseholdApply_Handler,
  964. },
  965. {
  966. MethodName: "HouseholdDelApply",
  967. Handler: _Household_HouseholdDelApply_Handler,
  968. },
  969. {
  970. MethodName: "HouseholdApprove",
  971. Handler: _Household_HouseholdApprove_Handler,
  972. },
  973. {
  974. MethodName: "HouseholdList",
  975. Handler: _Household_HouseholdList_Handler,
  976. },
  977. {
  978. MethodName: "HouseholdUserList",
  979. Handler: _Household_HouseholdUserList_Handler,
  980. },
  981. {
  982. MethodName: "UserInfo",
  983. Handler: _Household_UserInfo_Handler,
  984. },
  985. {
  986. MethodName: "HouseholdGardenNameChange",
  987. Handler: _Household_HouseholdGardenNameChange_Handler,
  988. },
  989. {
  990. MethodName: "HouseholdRefuse",
  991. Handler: _Household_HouseholdRefuse_Handler,
  992. },
  993. {
  994. MethodName: "HouseRentApply",
  995. Handler: _Household_HouseRentApply_Handler,
  996. },
  997. {
  998. MethodName: "HouseRentApprove",
  999. Handler: _Household_HouseRentApprove_Handler,
  1000. },
  1001. {
  1002. MethodName: "HouseRentUpdate",
  1003. Handler: _Household_HouseRentUpdate_Handler,
  1004. },
  1005. {
  1006. MethodName: "HouseRentDown",
  1007. Handler: _Household_HouseRentDown_Handler,
  1008. },
  1009. {
  1010. MethodName: "HouseRentList",
  1011. Handler: _Household_HouseRentList_Handler,
  1012. },
  1013. {
  1014. MethodName: "HouseRentAppointmentAdd",
  1015. Handler: _Household_HouseRentAppointmentAdd_Handler,
  1016. },
  1017. {
  1018. MethodName: "HouseRentAppointmentList",
  1019. Handler: _Household_HouseRentAppointmentList_Handler,
  1020. },
  1021. {
  1022. MethodName: "HouseRentAppointmentDel",
  1023. Handler: _Household_HouseRentAppointmentDel_Handler,
  1024. },
  1025. {
  1026. MethodName: "HouseRentAppointmentStatus",
  1027. Handler: _Household_HouseRentAppointmentStatus_Handler,
  1028. },
  1029. {
  1030. MethodName: "HouseRentChangeField",
  1031. Handler: _Household_HouseRentChangeField_Handler,
  1032. },
  1033. {
  1034. MethodName: "HouseholdWaitCount",
  1035. Handler: _Household_HouseholdWaitCount_Handler,
  1036. },
  1037. {
  1038. MethodName: "UserWxPublicAdd",
  1039. Handler: _Household_UserWxPublicAdd_Handler,
  1040. },
  1041. {
  1042. MethodName: "WxPublicEmptyUnionId",
  1043. Handler: _Household_WxPublicEmptyUnionId_Handler,
  1044. },
  1045. {
  1046. MethodName: "GateQcode",
  1047. Handler: _Household_GateQcode_Handler,
  1048. },
  1049. {
  1050. MethodName: "HouseholdDelHouse",
  1051. Handler: _Household_HouseholdDelHouse_Handler,
  1052. },
  1053. },
  1054. Streams: []grpc.StreamDesc{},
  1055. Metadata: "household_service.proto",
  1056. }