household_service.pb.go 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  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-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. // 436 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x4b, 0xef, 0xd2, 0x40,
  30. 0x14, 0xc5, 0xdd, 0x68, 0x64, 0xe2, 0xf3, 0xfa, 0x00, 0x2b, 0xa0, 0xf1, 0xb5, 0xa3, 0x04, 0xdd,
  31. 0x99, 0xb8, 0xc0, 0x10, 0x95, 0x84, 0x60, 0x6c, 0x42, 0x62, 0xdc, 0x90, 0x96, 0x5e, 0xa1, 0x5a,
  32. 0x3a, 0x63, 0x3b, 0x94, 0xf4, 0x3b, 0xf8, 0xa1, 0xff, 0x99, 0x4e, 0xa7, 0x4c, 0xe9, 0xb4, 0xfc,
  33. 0x77, 0xe5, 0x9c, 0x73, 0x7f, 0xe5, 0x9e, 0x4e, 0x86, 0x74, 0x77, 0xf4, 0x90, 0xe0, 0x8e, 0x86,
  34. 0xfe, 0x3a, 0xc1, 0x38, 0x0d, 0x36, 0x68, 0xb3, 0x98, 0x72, 0x0a, 0x84, 0x79, 0x76, 0xa1, 0x58,
  35. 0x90, 0x4e, 0xc6, 0x65, 0x4e, 0xfa, 0xef, 0xff, 0x13, 0xd2, 0xf9, 0xa6, 0x34, 0x98, 0x90, 0x9b,
  36. 0x0b, 0xba, 0x0d, 0x22, 0x78, 0x64, 0x33, 0x6f, 0x9d, 0x4e, 0xec, 0xfc, 0x97, 0x83, 0xff, 0x0e,
  37. 0x98, 0x70, 0xeb, 0x61, 0x55, 0x64, 0x61, 0xf6, 0xea, 0x06, 0x7c, 0x27, 0xf7, 0xcb, 0xf9, 0xfc,
  38. 0x21, 0x81, 0x41, 0x91, 0x3b, 0xd3, 0x15, 0xe6, 0x79, 0x93, 0x2d, 0x81, 0x5f, 0xc8, 0x1d, 0x07,
  39. 0xdd, 0x70, 0xe9, 0xee, 0x71, 0x7a, 0xe0, 0x3b, 0xb0, 0x8a, 0xb8, 0x2e, 0x2a, 0x54, 0xcf, 0xe8,
  40. 0x49, 0xce, 0x4f, 0x02, 0xab, 0x04, 0xe3, 0x15, 0xf3, 0x5d, 0x8e, 0xcb, 0x60, 0xf3, 0x57, 0x04,
  41. 0xe0, 0x65, 0x31, 0x51, 0xb7, 0x14, 0x73, 0xd8, 0x92, 0x90, 0xe4, 0x05, 0xb9, 0x57, 0xfe, 0xf7,
  42. 0x29, 0x63, 0x61, 0x06, 0xfd, 0xf3, 0x95, 0x72, 0x59, 0x11, 0xad, 0x06, 0x57, 0xd2, 0x1c, 0xf2,
  43. 0x40, 0x37, 0x62, 0x9a, 0x22, 0x0c, 0x0d, 0x13, 0xc2, 0x50, 0xc4, 0x7e, 0xa3, 0x2f, 0x99, 0x73,
  44. 0x72, 0xb7, 0xb4, 0x16, 0x41, 0xc2, 0xa1, 0xd6, 0xb9, 0x50, 0x15, 0xed, 0x99, 0xd9, 0x94, 0xa8,
  45. 0x8f, 0xe4, 0xb6, 0x68, 0x62, 0x1e, 0xfd, 0xa6, 0xf0, 0x54, 0xab, 0x46, 0x08, 0x0a, 0xf0, 0xb8,
  46. 0xa6, 0x57, 0x8b, 0x72, 0x30, 0xe2, 0x86, 0xa2, 0x4a, 0xd9, 0x58, 0x94, 0xe6, 0x56, 0x4f, 0x9a,
  47. 0x30, 0xe4, 0x87, 0xa9, 0x9e, 0xb4, 0x93, 0x6e, 0x3c, 0x69, 0xba, 0x5d, 0x6d, 0x49, 0x38, 0x33,
  48. 0x7a, 0x8c, 0xa0, 0x96, 0x17, 0xaa, 0xb1, 0xa5, 0x93, 0x59, 0x47, 0xd5, 0x0b, 0x57, 0x6a, 0x23,
  49. 0x4a, 0x2f, 0xfc, 0x13, 0xe9, 0x7c, 0x75, 0x39, 0xfe, 0xd8, 0x50, 0x1f, 0xa1, 0x5b, 0x24, 0x4b,
  50. 0x45, 0x21, 0x9e, 0xd4, 0x0d, 0x39, 0xbe, 0x25, 0x5d, 0xbd, 0x3e, 0x1a, 0x44, 0x7c, 0x2f, 0x1e,
  51. 0x7d, 0x1f, 0xde, 0x1a, 0xea, 0xd5, 0x7c, 0x85, 0x7e, 0x7d, 0x29, 0x26, 0x5f, 0xf4, 0x87, 0xf4,
  52. 0x4c, 0x89, 0x7c, 0xfb, 0x77, 0x2d, 0x08, 0xbd, 0x88, 0x37, 0x17, 0x73, 0xad, 0x4b, 0xcd, 0x30,
  53. 0x6c, 0x5d, 0x6a, 0x86, 0xe1, 0x75, 0x96, 0xca, 0x63, 0xf9, 0x8b, 0x3e, 0xbf, 0xf8, 0x35, 0x60,
  54. 0x31, 0x65, 0x18, 0xf3, 0x6c, 0x54, 0x5e, 0x95, 0xa3, 0xad, 0xcb, 0xf1, 0xe8, 0x66, 0x63, 0xe6,
  55. 0x79, 0xb7, 0xf2, 0x6b, 0xf3, 0xc3, 0x55, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xcf,
  56. 0x71, 0x05, 0x00, 0x00,
  57. }
  58. // Reference imports to suppress errors if they are not otherwise used.
  59. var _ context.Context
  60. var _ grpc.ClientConnInterface
  61. // This is a compile-time assertion to ensure that this generated file
  62. // is compatible with the grpc package it is being compiled against.
  63. const _ = grpc.SupportPackageIsVersion6
  64. // HouseholdClient is the client API for Household service.
  65. //
  66. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  67. type HouseholdClient interface {
  68. //
  69. Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error)
  70. // 获取住户房屋列表
  71. HouseholdHouses(ctx context.Context, in *v1.HouseholdHousesRequest, opts ...grpc.CallOption) (*v1.HouseholdHousesReply, error)
  72. RealNameAuth(ctx context.Context, in *v1.RealNameAuthRequest, opts ...grpc.CallOption) (*v1.RealNameAuthReply, error)
  73. UserUpdateNickName(ctx context.Context, in *v1.UserUpdateNickNameRequest, opts ...grpc.CallOption) (*v1.UserUpdateNickNameReply, error)
  74. HouseholdApply(ctx context.Context, in *v1.HouseholdApplyRequest, opts ...grpc.CallOption) (*v1.HouseholdApplyReply, error)
  75. HouseholdApprove(ctx context.Context, in *v1.HouseholdApproveRequest, opts ...grpc.CallOption) (*v1.HouseholdApproveReply, error)
  76. HouseholdList(ctx context.Context, in *v1.HouseholdListRequest, opts ...grpc.CallOption) (*v1.HouseholdListReply, error)
  77. UserInfo(ctx context.Context, in *v1.UserInfoRequest, opts ...grpc.CallOption) (*v1.UserInfoReply, error)
  78. // 房屋租赁
  79. HouseRentApply(ctx context.Context, in *v1.HouseRentApplyRequest, opts ...grpc.CallOption) (*v1.HouseRentApplyReply, error)
  80. HouseRentUpdate(ctx context.Context, in *v1.HouseRentUpdateRequest, opts ...grpc.CallOption) (*v1.HouseRentUpdateReply, error)
  81. HouseRentDown(ctx context.Context, in *v1.HouseRentDownRequest, opts ...grpc.CallOption) (*v1.HouseRentDownReply, error)
  82. HouseRentList(ctx context.Context, in *v1.HouseRentListRequest, opts ...grpc.CallOption) (*v1.HouseRentListReply, error)
  83. GateQcode(ctx context.Context, in *v1.GateQcodeRequest, opts ...grpc.CallOption) (*v1.GateQcodeReply, error)
  84. // 租房预约看房
  85. HouseRentAppointmentAdd(ctx context.Context, in *v1.HouseRentAppointmentAddRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentAddReply, error)
  86. // 租房预约列表
  87. HouseRentAppointmentList(ctx context.Context, in *v1.HouseRentAppointmentListRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentListReply, error)
  88. // 删除租房预约
  89. HouseRentAppointmentDel(ctx context.Context, in *v1.HouseRentAppointmentDelRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentDelReply, error)
  90. }
  91. type householdClient struct {
  92. cc grpc.ClientConnInterface
  93. }
  94. func NewHouseholdClient(cc grpc.ClientConnInterface) HouseholdClient {
  95. return &householdClient{cc}
  96. }
  97. func (c *householdClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) {
  98. out := new(v1.LoginReply)
  99. err := c.cc.Invoke(ctx, "/pb.service.Household/Login", in, out, opts...)
  100. if err != nil {
  101. return nil, err
  102. }
  103. return out, nil
  104. }
  105. func (c *householdClient) HouseholdHouses(ctx context.Context, in *v1.HouseholdHousesRequest, opts ...grpc.CallOption) (*v1.HouseholdHousesReply, error) {
  106. out := new(v1.HouseholdHousesReply)
  107. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdHouses", in, out, opts...)
  108. if err != nil {
  109. return nil, err
  110. }
  111. return out, nil
  112. }
  113. func (c *householdClient) RealNameAuth(ctx context.Context, in *v1.RealNameAuthRequest, opts ...grpc.CallOption) (*v1.RealNameAuthReply, error) {
  114. out := new(v1.RealNameAuthReply)
  115. err := c.cc.Invoke(ctx, "/pb.service.Household/RealNameAuth", in, out, opts...)
  116. if err != nil {
  117. return nil, err
  118. }
  119. return out, nil
  120. }
  121. func (c *householdClient) UserUpdateNickName(ctx context.Context, in *v1.UserUpdateNickNameRequest, opts ...grpc.CallOption) (*v1.UserUpdateNickNameReply, error) {
  122. out := new(v1.UserUpdateNickNameReply)
  123. err := c.cc.Invoke(ctx, "/pb.service.Household/UserUpdateNickName", in, out, opts...)
  124. if err != nil {
  125. return nil, err
  126. }
  127. return out, nil
  128. }
  129. func (c *householdClient) HouseholdApply(ctx context.Context, in *v1.HouseholdApplyRequest, opts ...grpc.CallOption) (*v1.HouseholdApplyReply, error) {
  130. out := new(v1.HouseholdApplyReply)
  131. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdApply", in, out, opts...)
  132. if err != nil {
  133. return nil, err
  134. }
  135. return out, nil
  136. }
  137. func (c *householdClient) HouseholdApprove(ctx context.Context, in *v1.HouseholdApproveRequest, opts ...grpc.CallOption) (*v1.HouseholdApproveReply, error) {
  138. out := new(v1.HouseholdApproveReply)
  139. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdApprove", in, out, opts...)
  140. if err != nil {
  141. return nil, err
  142. }
  143. return out, nil
  144. }
  145. func (c *householdClient) HouseholdList(ctx context.Context, in *v1.HouseholdListRequest, opts ...grpc.CallOption) (*v1.HouseholdListReply, error) {
  146. out := new(v1.HouseholdListReply)
  147. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdList", in, out, opts...)
  148. if err != nil {
  149. return nil, err
  150. }
  151. return out, nil
  152. }
  153. func (c *householdClient) UserInfo(ctx context.Context, in *v1.UserInfoRequest, opts ...grpc.CallOption) (*v1.UserInfoReply, error) {
  154. out := new(v1.UserInfoReply)
  155. err := c.cc.Invoke(ctx, "/pb.service.Household/UserInfo", in, out, opts...)
  156. if err != nil {
  157. return nil, err
  158. }
  159. return out, nil
  160. }
  161. func (c *householdClient) HouseRentApply(ctx context.Context, in *v1.HouseRentApplyRequest, opts ...grpc.CallOption) (*v1.HouseRentApplyReply, error) {
  162. out := new(v1.HouseRentApplyReply)
  163. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentApply", in, out, opts...)
  164. if err != nil {
  165. return nil, err
  166. }
  167. return out, nil
  168. }
  169. func (c *householdClient) HouseRentUpdate(ctx context.Context, in *v1.HouseRentUpdateRequest, opts ...grpc.CallOption) (*v1.HouseRentUpdateReply, error) {
  170. out := new(v1.HouseRentUpdateReply)
  171. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentUpdate", in, out, opts...)
  172. if err != nil {
  173. return nil, err
  174. }
  175. return out, nil
  176. }
  177. func (c *householdClient) HouseRentDown(ctx context.Context, in *v1.HouseRentDownRequest, opts ...grpc.CallOption) (*v1.HouseRentDownReply, error) {
  178. out := new(v1.HouseRentDownReply)
  179. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentDown", in, out, opts...)
  180. if err != nil {
  181. return nil, err
  182. }
  183. return out, nil
  184. }
  185. func (c *householdClient) HouseRentList(ctx context.Context, in *v1.HouseRentListRequest, opts ...grpc.CallOption) (*v1.HouseRentListReply, error) {
  186. out := new(v1.HouseRentListReply)
  187. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentList", in, out, opts...)
  188. if err != nil {
  189. return nil, err
  190. }
  191. return out, nil
  192. }
  193. func (c *householdClient) GateQcode(ctx context.Context, in *v1.GateQcodeRequest, opts ...grpc.CallOption) (*v1.GateQcodeReply, error) {
  194. out := new(v1.GateQcodeReply)
  195. err := c.cc.Invoke(ctx, "/pb.service.Household/GateQcode", in, out, opts...)
  196. if err != nil {
  197. return nil, err
  198. }
  199. return out, nil
  200. }
  201. func (c *householdClient) HouseRentAppointmentAdd(ctx context.Context, in *v1.HouseRentAppointmentAddRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentAddReply, error) {
  202. out := new(v1.HouseRentAppointmentAddReply)
  203. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentAppointmentAdd", in, out, opts...)
  204. if err != nil {
  205. return nil, err
  206. }
  207. return out, nil
  208. }
  209. func (c *householdClient) HouseRentAppointmentList(ctx context.Context, in *v1.HouseRentAppointmentListRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentListReply, error) {
  210. out := new(v1.HouseRentAppointmentListReply)
  211. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentAppointmentList", in, out, opts...)
  212. if err != nil {
  213. return nil, err
  214. }
  215. return out, nil
  216. }
  217. func (c *householdClient) HouseRentAppointmentDel(ctx context.Context, in *v1.HouseRentAppointmentDelRequest, opts ...grpc.CallOption) (*v1.HouseRentAppointmentDelReply, error) {
  218. out := new(v1.HouseRentAppointmentDelReply)
  219. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseRentAppointmentDel", in, out, opts...)
  220. if err != nil {
  221. return nil, err
  222. }
  223. return out, nil
  224. }
  225. // HouseholdServer is the server API for Household service.
  226. type HouseholdServer interface {
  227. //
  228. Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
  229. // 获取住户房屋列表
  230. HouseholdHouses(context.Context, *v1.HouseholdHousesRequest) (*v1.HouseholdHousesReply, error)
  231. RealNameAuth(context.Context, *v1.RealNameAuthRequest) (*v1.RealNameAuthReply, error)
  232. UserUpdateNickName(context.Context, *v1.UserUpdateNickNameRequest) (*v1.UserUpdateNickNameReply, error)
  233. HouseholdApply(context.Context, *v1.HouseholdApplyRequest) (*v1.HouseholdApplyReply, error)
  234. HouseholdApprove(context.Context, *v1.HouseholdApproveRequest) (*v1.HouseholdApproveReply, error)
  235. HouseholdList(context.Context, *v1.HouseholdListRequest) (*v1.HouseholdListReply, error)
  236. UserInfo(context.Context, *v1.UserInfoRequest) (*v1.UserInfoReply, error)
  237. // 房屋租赁
  238. HouseRentApply(context.Context, *v1.HouseRentApplyRequest) (*v1.HouseRentApplyReply, error)
  239. HouseRentUpdate(context.Context, *v1.HouseRentUpdateRequest) (*v1.HouseRentUpdateReply, error)
  240. HouseRentDown(context.Context, *v1.HouseRentDownRequest) (*v1.HouseRentDownReply, error)
  241. HouseRentList(context.Context, *v1.HouseRentListRequest) (*v1.HouseRentListReply, error)
  242. GateQcode(context.Context, *v1.GateQcodeRequest) (*v1.GateQcodeReply, error)
  243. // 租房预约看房
  244. HouseRentAppointmentAdd(context.Context, *v1.HouseRentAppointmentAddRequest) (*v1.HouseRentAppointmentAddReply, error)
  245. // 租房预约列表
  246. HouseRentAppointmentList(context.Context, *v1.HouseRentAppointmentListRequest) (*v1.HouseRentAppointmentListReply, error)
  247. // 删除租房预约
  248. HouseRentAppointmentDel(context.Context, *v1.HouseRentAppointmentDelRequest) (*v1.HouseRentAppointmentDelReply, error)
  249. }
  250. // UnimplementedHouseholdServer can be embedded to have forward compatible implementations.
  251. type UnimplementedHouseholdServer struct {
  252. }
  253. func (*UnimplementedHouseholdServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
  254. return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
  255. }
  256. func (*UnimplementedHouseholdServer) HouseholdHouses(ctx context.Context, req *v1.HouseholdHousesRequest) (*v1.HouseholdHousesReply, error) {
  257. return nil, status.Errorf(codes.Unimplemented, "method HouseholdHouses not implemented")
  258. }
  259. func (*UnimplementedHouseholdServer) RealNameAuth(ctx context.Context, req *v1.RealNameAuthRequest) (*v1.RealNameAuthReply, error) {
  260. return nil, status.Errorf(codes.Unimplemented, "method RealNameAuth not implemented")
  261. }
  262. func (*UnimplementedHouseholdServer) UserUpdateNickName(ctx context.Context, req *v1.UserUpdateNickNameRequest) (*v1.UserUpdateNickNameReply, error) {
  263. return nil, status.Errorf(codes.Unimplemented, "method UserUpdateNickName not implemented")
  264. }
  265. func (*UnimplementedHouseholdServer) HouseholdApply(ctx context.Context, req *v1.HouseholdApplyRequest) (*v1.HouseholdApplyReply, error) {
  266. return nil, status.Errorf(codes.Unimplemented, "method HouseholdApply not implemented")
  267. }
  268. func (*UnimplementedHouseholdServer) HouseholdApprove(ctx context.Context, req *v1.HouseholdApproveRequest) (*v1.HouseholdApproveReply, error) {
  269. return nil, status.Errorf(codes.Unimplemented, "method HouseholdApprove not implemented")
  270. }
  271. func (*UnimplementedHouseholdServer) HouseholdList(ctx context.Context, req *v1.HouseholdListRequest) (*v1.HouseholdListReply, error) {
  272. return nil, status.Errorf(codes.Unimplemented, "method HouseholdList not implemented")
  273. }
  274. func (*UnimplementedHouseholdServer) UserInfo(ctx context.Context, req *v1.UserInfoRequest) (*v1.UserInfoReply, error) {
  275. return nil, status.Errorf(codes.Unimplemented, "method UserInfo not implemented")
  276. }
  277. func (*UnimplementedHouseholdServer) HouseRentApply(ctx context.Context, req *v1.HouseRentApplyRequest) (*v1.HouseRentApplyReply, error) {
  278. return nil, status.Errorf(codes.Unimplemented, "method HouseRentApply not implemented")
  279. }
  280. func (*UnimplementedHouseholdServer) HouseRentUpdate(ctx context.Context, req *v1.HouseRentUpdateRequest) (*v1.HouseRentUpdateReply, error) {
  281. return nil, status.Errorf(codes.Unimplemented, "method HouseRentUpdate not implemented")
  282. }
  283. func (*UnimplementedHouseholdServer) HouseRentDown(ctx context.Context, req *v1.HouseRentDownRequest) (*v1.HouseRentDownReply, error) {
  284. return nil, status.Errorf(codes.Unimplemented, "method HouseRentDown not implemented")
  285. }
  286. func (*UnimplementedHouseholdServer) HouseRentList(ctx context.Context, req *v1.HouseRentListRequest) (*v1.HouseRentListReply, error) {
  287. return nil, status.Errorf(codes.Unimplemented, "method HouseRentList not implemented")
  288. }
  289. func (*UnimplementedHouseholdServer) GateQcode(ctx context.Context, req *v1.GateQcodeRequest) (*v1.GateQcodeReply, error) {
  290. return nil, status.Errorf(codes.Unimplemented, "method GateQcode not implemented")
  291. }
  292. func (*UnimplementedHouseholdServer) HouseRentAppointmentAdd(ctx context.Context, req *v1.HouseRentAppointmentAddRequest) (*v1.HouseRentAppointmentAddReply, error) {
  293. return nil, status.Errorf(codes.Unimplemented, "method HouseRentAppointmentAdd not implemented")
  294. }
  295. func (*UnimplementedHouseholdServer) HouseRentAppointmentList(ctx context.Context, req *v1.HouseRentAppointmentListRequest) (*v1.HouseRentAppointmentListReply, error) {
  296. return nil, status.Errorf(codes.Unimplemented, "method HouseRentAppointmentList not implemented")
  297. }
  298. func (*UnimplementedHouseholdServer) HouseRentAppointmentDel(ctx context.Context, req *v1.HouseRentAppointmentDelRequest) (*v1.HouseRentAppointmentDelReply, error) {
  299. return nil, status.Errorf(codes.Unimplemented, "method HouseRentAppointmentDel not implemented")
  300. }
  301. func RegisterHouseholdServer(s *grpc.Server, srv HouseholdServer) {
  302. s.RegisterService(&_Household_serviceDesc, srv)
  303. }
  304. func _Household_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  305. in := new(v1.LoginRequest)
  306. if err := dec(in); err != nil {
  307. return nil, err
  308. }
  309. if interceptor == nil {
  310. return srv.(HouseholdServer).Login(ctx, in)
  311. }
  312. info := &grpc.UnaryServerInfo{
  313. Server: srv,
  314. FullMethod: "/pb.service.Household/Login",
  315. }
  316. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  317. return srv.(HouseholdServer).Login(ctx, req.(*v1.LoginRequest))
  318. }
  319. return interceptor(ctx, in, info, handler)
  320. }
  321. func _Household_HouseholdHouses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  322. in := new(v1.HouseholdHousesRequest)
  323. if err := dec(in); err != nil {
  324. return nil, err
  325. }
  326. if interceptor == nil {
  327. return srv.(HouseholdServer).HouseholdHouses(ctx, in)
  328. }
  329. info := &grpc.UnaryServerInfo{
  330. Server: srv,
  331. FullMethod: "/pb.service.Household/HouseholdHouses",
  332. }
  333. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  334. return srv.(HouseholdServer).HouseholdHouses(ctx, req.(*v1.HouseholdHousesRequest))
  335. }
  336. return interceptor(ctx, in, info, handler)
  337. }
  338. func _Household_RealNameAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  339. in := new(v1.RealNameAuthRequest)
  340. if err := dec(in); err != nil {
  341. return nil, err
  342. }
  343. if interceptor == nil {
  344. return srv.(HouseholdServer).RealNameAuth(ctx, in)
  345. }
  346. info := &grpc.UnaryServerInfo{
  347. Server: srv,
  348. FullMethod: "/pb.service.Household/RealNameAuth",
  349. }
  350. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  351. return srv.(HouseholdServer).RealNameAuth(ctx, req.(*v1.RealNameAuthRequest))
  352. }
  353. return interceptor(ctx, in, info, handler)
  354. }
  355. func _Household_UserUpdateNickName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  356. in := new(v1.UserUpdateNickNameRequest)
  357. if err := dec(in); err != nil {
  358. return nil, err
  359. }
  360. if interceptor == nil {
  361. return srv.(HouseholdServer).UserUpdateNickName(ctx, in)
  362. }
  363. info := &grpc.UnaryServerInfo{
  364. Server: srv,
  365. FullMethod: "/pb.service.Household/UserUpdateNickName",
  366. }
  367. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  368. return srv.(HouseholdServer).UserUpdateNickName(ctx, req.(*v1.UserUpdateNickNameRequest))
  369. }
  370. return interceptor(ctx, in, info, handler)
  371. }
  372. func _Household_HouseholdApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  373. in := new(v1.HouseholdApplyRequest)
  374. if err := dec(in); err != nil {
  375. return nil, err
  376. }
  377. if interceptor == nil {
  378. return srv.(HouseholdServer).HouseholdApply(ctx, in)
  379. }
  380. info := &grpc.UnaryServerInfo{
  381. Server: srv,
  382. FullMethod: "/pb.service.Household/HouseholdApply",
  383. }
  384. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  385. return srv.(HouseholdServer).HouseholdApply(ctx, req.(*v1.HouseholdApplyRequest))
  386. }
  387. return interceptor(ctx, in, info, handler)
  388. }
  389. func _Household_HouseholdApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  390. in := new(v1.HouseholdApproveRequest)
  391. if err := dec(in); err != nil {
  392. return nil, err
  393. }
  394. if interceptor == nil {
  395. return srv.(HouseholdServer).HouseholdApprove(ctx, in)
  396. }
  397. info := &grpc.UnaryServerInfo{
  398. Server: srv,
  399. FullMethod: "/pb.service.Household/HouseholdApprove",
  400. }
  401. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  402. return srv.(HouseholdServer).HouseholdApprove(ctx, req.(*v1.HouseholdApproveRequest))
  403. }
  404. return interceptor(ctx, in, info, handler)
  405. }
  406. func _Household_HouseholdList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  407. in := new(v1.HouseholdListRequest)
  408. if err := dec(in); err != nil {
  409. return nil, err
  410. }
  411. if interceptor == nil {
  412. return srv.(HouseholdServer).HouseholdList(ctx, in)
  413. }
  414. info := &grpc.UnaryServerInfo{
  415. Server: srv,
  416. FullMethod: "/pb.service.Household/HouseholdList",
  417. }
  418. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  419. return srv.(HouseholdServer).HouseholdList(ctx, req.(*v1.HouseholdListRequest))
  420. }
  421. return interceptor(ctx, in, info, handler)
  422. }
  423. func _Household_UserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  424. in := new(v1.UserInfoRequest)
  425. if err := dec(in); err != nil {
  426. return nil, err
  427. }
  428. if interceptor == nil {
  429. return srv.(HouseholdServer).UserInfo(ctx, in)
  430. }
  431. info := &grpc.UnaryServerInfo{
  432. Server: srv,
  433. FullMethod: "/pb.service.Household/UserInfo",
  434. }
  435. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  436. return srv.(HouseholdServer).UserInfo(ctx, req.(*v1.UserInfoRequest))
  437. }
  438. return interceptor(ctx, in, info, handler)
  439. }
  440. func _Household_HouseRentApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  441. in := new(v1.HouseRentApplyRequest)
  442. if err := dec(in); err != nil {
  443. return nil, err
  444. }
  445. if interceptor == nil {
  446. return srv.(HouseholdServer).HouseRentApply(ctx, in)
  447. }
  448. info := &grpc.UnaryServerInfo{
  449. Server: srv,
  450. FullMethod: "/pb.service.Household/HouseRentApply",
  451. }
  452. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  453. return srv.(HouseholdServer).HouseRentApply(ctx, req.(*v1.HouseRentApplyRequest))
  454. }
  455. return interceptor(ctx, in, info, handler)
  456. }
  457. func _Household_HouseRentUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  458. in := new(v1.HouseRentUpdateRequest)
  459. if err := dec(in); err != nil {
  460. return nil, err
  461. }
  462. if interceptor == nil {
  463. return srv.(HouseholdServer).HouseRentUpdate(ctx, in)
  464. }
  465. info := &grpc.UnaryServerInfo{
  466. Server: srv,
  467. FullMethod: "/pb.service.Household/HouseRentUpdate",
  468. }
  469. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  470. return srv.(HouseholdServer).HouseRentUpdate(ctx, req.(*v1.HouseRentUpdateRequest))
  471. }
  472. return interceptor(ctx, in, info, handler)
  473. }
  474. func _Household_HouseRentDown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  475. in := new(v1.HouseRentDownRequest)
  476. if err := dec(in); err != nil {
  477. return nil, err
  478. }
  479. if interceptor == nil {
  480. return srv.(HouseholdServer).HouseRentDown(ctx, in)
  481. }
  482. info := &grpc.UnaryServerInfo{
  483. Server: srv,
  484. FullMethod: "/pb.service.Household/HouseRentDown",
  485. }
  486. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  487. return srv.(HouseholdServer).HouseRentDown(ctx, req.(*v1.HouseRentDownRequest))
  488. }
  489. return interceptor(ctx, in, info, handler)
  490. }
  491. func _Household_HouseRentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  492. in := new(v1.HouseRentListRequest)
  493. if err := dec(in); err != nil {
  494. return nil, err
  495. }
  496. if interceptor == nil {
  497. return srv.(HouseholdServer).HouseRentList(ctx, in)
  498. }
  499. info := &grpc.UnaryServerInfo{
  500. Server: srv,
  501. FullMethod: "/pb.service.Household/HouseRentList",
  502. }
  503. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  504. return srv.(HouseholdServer).HouseRentList(ctx, req.(*v1.HouseRentListRequest))
  505. }
  506. return interceptor(ctx, in, info, handler)
  507. }
  508. func _Household_GateQcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  509. in := new(v1.GateQcodeRequest)
  510. if err := dec(in); err != nil {
  511. return nil, err
  512. }
  513. if interceptor == nil {
  514. return srv.(HouseholdServer).GateQcode(ctx, in)
  515. }
  516. info := &grpc.UnaryServerInfo{
  517. Server: srv,
  518. FullMethod: "/pb.service.Household/GateQcode",
  519. }
  520. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  521. return srv.(HouseholdServer).GateQcode(ctx, req.(*v1.GateQcodeRequest))
  522. }
  523. return interceptor(ctx, in, info, handler)
  524. }
  525. func _Household_HouseRentAppointmentAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  526. in := new(v1.HouseRentAppointmentAddRequest)
  527. if err := dec(in); err != nil {
  528. return nil, err
  529. }
  530. if interceptor == nil {
  531. return srv.(HouseholdServer).HouseRentAppointmentAdd(ctx, in)
  532. }
  533. info := &grpc.UnaryServerInfo{
  534. Server: srv,
  535. FullMethod: "/pb.service.Household/HouseRentAppointmentAdd",
  536. }
  537. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  538. return srv.(HouseholdServer).HouseRentAppointmentAdd(ctx, req.(*v1.HouseRentAppointmentAddRequest))
  539. }
  540. return interceptor(ctx, in, info, handler)
  541. }
  542. func _Household_HouseRentAppointmentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  543. in := new(v1.HouseRentAppointmentListRequest)
  544. if err := dec(in); err != nil {
  545. return nil, err
  546. }
  547. if interceptor == nil {
  548. return srv.(HouseholdServer).HouseRentAppointmentList(ctx, in)
  549. }
  550. info := &grpc.UnaryServerInfo{
  551. Server: srv,
  552. FullMethod: "/pb.service.Household/HouseRentAppointmentList",
  553. }
  554. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  555. return srv.(HouseholdServer).HouseRentAppointmentList(ctx, req.(*v1.HouseRentAppointmentListRequest))
  556. }
  557. return interceptor(ctx, in, info, handler)
  558. }
  559. func _Household_HouseRentAppointmentDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  560. in := new(v1.HouseRentAppointmentDelRequest)
  561. if err := dec(in); err != nil {
  562. return nil, err
  563. }
  564. if interceptor == nil {
  565. return srv.(HouseholdServer).HouseRentAppointmentDel(ctx, in)
  566. }
  567. info := &grpc.UnaryServerInfo{
  568. Server: srv,
  569. FullMethod: "/pb.service.Household/HouseRentAppointmentDel",
  570. }
  571. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  572. return srv.(HouseholdServer).HouseRentAppointmentDel(ctx, req.(*v1.HouseRentAppointmentDelRequest))
  573. }
  574. return interceptor(ctx, in, info, handler)
  575. }
  576. var _Household_serviceDesc = grpc.ServiceDesc{
  577. ServiceName: "pb.service.Household",
  578. HandlerType: (*HouseholdServer)(nil),
  579. Methods: []grpc.MethodDesc{
  580. {
  581. MethodName: "Login",
  582. Handler: _Household_Login_Handler,
  583. },
  584. {
  585. MethodName: "HouseholdHouses",
  586. Handler: _Household_HouseholdHouses_Handler,
  587. },
  588. {
  589. MethodName: "RealNameAuth",
  590. Handler: _Household_RealNameAuth_Handler,
  591. },
  592. {
  593. MethodName: "UserUpdateNickName",
  594. Handler: _Household_UserUpdateNickName_Handler,
  595. },
  596. {
  597. MethodName: "HouseholdApply",
  598. Handler: _Household_HouseholdApply_Handler,
  599. },
  600. {
  601. MethodName: "HouseholdApprove",
  602. Handler: _Household_HouseholdApprove_Handler,
  603. },
  604. {
  605. MethodName: "HouseholdList",
  606. Handler: _Household_HouseholdList_Handler,
  607. },
  608. {
  609. MethodName: "UserInfo",
  610. Handler: _Household_UserInfo_Handler,
  611. },
  612. {
  613. MethodName: "HouseRentApply",
  614. Handler: _Household_HouseRentApply_Handler,
  615. },
  616. {
  617. MethodName: "HouseRentUpdate",
  618. Handler: _Household_HouseRentUpdate_Handler,
  619. },
  620. {
  621. MethodName: "HouseRentDown",
  622. Handler: _Household_HouseRentDown_Handler,
  623. },
  624. {
  625. MethodName: "HouseRentList",
  626. Handler: _Household_HouseRentList_Handler,
  627. },
  628. {
  629. MethodName: "GateQcode",
  630. Handler: _Household_GateQcode_Handler,
  631. },
  632. {
  633. MethodName: "HouseRentAppointmentAdd",
  634. Handler: _Household_HouseRentAppointmentAdd_Handler,
  635. },
  636. {
  637. MethodName: "HouseRentAppointmentList",
  638. Handler: _Household_HouseRentAppointmentList_Handler,
  639. },
  640. {
  641. MethodName: "HouseRentAppointmentDel",
  642. Handler: _Household_HouseRentAppointmentDel_Handler,
  643. },
  644. },
  645. Streams: []grpc.StreamDesc{},
  646. Metadata: "household_service.proto",
  647. }