house_rent.go 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package impl
  2. import (
  3. "context"
  4. "git.getensh.com/common/gopkgs/tasker/rpctasker"
  5. "property-garden/impl/v1/house_rent"
  6. pb_v1 "property-garden/pb/v1"
  7. )
  8. //
  9. func (c *Rcvr) GardenHouseRentSync(ctx context.Context, req *pb_v1.GardenHouseRentSyncRequest) (reply *pb_v1.GardenHouseRentSyncReply, err error) {
  10. t1 := func() error {
  11. reply, err = house_rent.GardenHouseRentSync(ctx, req)
  12. return err
  13. }
  14. return reply, rpctasker.Exec(ctx, t1)
  15. }
  16. func (c *Rcvr) GardenHouseRentList(ctx context.Context, req *pb_v1.GardenHouseRentListRequest) (reply *pb_v1.GardenHouseRentListReply, err error) {
  17. t1 := func() error {
  18. reply, err = house_rent.GardenHouseRentList(ctx, req)
  19. return err
  20. }
  21. return reply, rpctasker.Exec(ctx, t1)
  22. }
  23. func (c *Rcvr) HouseRentAddManager(ctx context.Context, req *pb_v1.HouseRentAddManagerRequest) (reply *pb_v1.HouseRentAddManagerReply, err error) {
  24. t1 := func() error {
  25. reply, err = house_rent.HouseRentAddManager(ctx, req)
  26. return err
  27. }
  28. return reply, rpctasker.Exec(ctx, t1)
  29. }
  30. func (c *Rcvr) HouseRentDelManager(ctx context.Context, req *pb_v1.HouseRentDelManagerRequest) (reply *pb_v1.HouseRentDelManagerReply, err error) {
  31. t1 := func() error {
  32. reply, err = house_rent.HouseRentDelManager(ctx, req)
  33. return err
  34. }
  35. return reply, rpctasker.Exec(ctx, t1)
  36. }
  37. func (c *Rcvr) HouseRentManagerList(ctx context.Context, req *pb_v1.HouseRentManagerListRequest) (reply *pb_v1.HouseRentManagerListReply, err error) {
  38. t1 := func() error {
  39. reply, err = house_rent.HouseRentManagerList(ctx, req)
  40. return err
  41. }
  42. return reply, rpctasker.Exec(ctx, t1)
  43. }
  44. // 因小区变动更新租房相关信息
  45. func (c *Rcvr) GardenHouseRentChangeField(ctx context.Context, req *pb_v1.GardenHouseRentChangeFieldRequest) (reply *pb_v1.GardenHouseRentChangeFieldReply, err error) {
  46. t1 := func() error {
  47. reply, err = house_rent.GardenHouseRentChangeField(ctx, req)
  48. return err
  49. }
  50. return reply, rpctasker.Exec(ctx, t1)
  51. }
  52. func (c *Rcvr) GardenHouseRentInfo(ctx context.Context, req *pb_v1.GardenHouseRentInfoRequest) (reply *pb_v1.GardenHouseRentInfoReply, err error) {
  53. t1 := func() error {
  54. reply, err = house_rent.GardenHouseRentInfo(ctx, req)
  55. return err
  56. }
  57. return reply, rpctasker.Exec(ctx, t1)
  58. }