123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- package impl
- import (
- "context"
- "git.getensh.com/common/gopkgs/tasker/rpctasker"
- "property-garden/impl/v1/house_rent"
- pb_v1 "property-garden/pb/v1"
- )
- //
- func (c *Rcvr) GardenHouseRentSync(ctx context.Context, req *pb_v1.GardenHouseRentSyncRequest) (reply *pb_v1.GardenHouseRentSyncReply, err error) {
- t1 := func() error {
- reply, err = house_rent.GardenHouseRentSync(ctx, req)
- return err
- }
- return reply, rpctasker.Exec(ctx, t1)
- }
- func (c *Rcvr) GardenHouseRentList(ctx context.Context, req *pb_v1.GardenHouseRentListRequest) (reply *pb_v1.GardenHouseRentListReply, err error) {
- t1 := func() error {
- reply, err = house_rent.GardenHouseRentList(ctx, req)
- return err
- }
- return reply, rpctasker.Exec(ctx, t1)
- }
- func (c *Rcvr) HouseRentAddManager(ctx context.Context, req *pb_v1.HouseRentAddManagerRequest) (reply *pb_v1.HouseRentAddManagerReply, err error) {
- t1 := func() error {
- reply, err = house_rent.HouseRentAddManager(ctx, req)
- return err
- }
- return reply, rpctasker.Exec(ctx, t1)
- }
- func (c *Rcvr) HouseRentDelManager(ctx context.Context, req *pb_v1.HouseRentDelManagerRequest) (reply *pb_v1.HouseRentDelManagerReply, err error) {
- t1 := func() error {
- reply, err = house_rent.HouseRentDelManager(ctx, req)
- return err
- }
- return reply, rpctasker.Exec(ctx, t1)
- }
- func (c *Rcvr) HouseRentManagerList(ctx context.Context, req *pb_v1.HouseRentManagerListRequest) (reply *pb_v1.HouseRentManagerListReply, err error) {
- t1 := func() error {
- reply, err = house_rent.HouseRentManagerList(ctx, req)
- return err
- }
- return reply, rpctasker.Exec(ctx, t1)
- }
- // 租房预约看房
- func (c *Rcvr) HouseRentAppointmentAdd(ctx context.Context, req *pb_v1.HouseRentAppointmentAddRequest) (reply *pb_v1.HouseRentAppointmentAddReply, err error) {
- t1 := func() error {
- reply, err = house_rent.HouseRentAppointmentAdd(ctx, req)
- return err
- }
- return reply, rpctasker.Exec(ctx, t1)
- }
- // 租房预约列表
- func (c *Rcvr) HouseRentAppointmentList(ctx context.Context, req *pb_v1.HouseRentAppointmentListRequest) (reply *pb_v1.HouseRentAppointmentListReply, err error) {
- t1 := func() error {
- reply, err = house_rent.HouseRentAppointmentList(ctx, req)
- return err
- }
- return reply, rpctasker.Exec(ctx, t1)
- }
- // 删除租房预约
- func (c *Rcvr) HouseRentAppointmentDel(ctx context.Context, req *pb_v1.HouseRentAppointmentDelRequest) (reply *pb_v1.HouseRentAppointmentDelReply, err error) {
- t1 := func() error {
- reply, err = house_rent.HouseRentAppointmentDel(ctx, req)
- return err
- }
- return reply, rpctasker.Exec(ctx, t1)
- }
- // 因小区变动更新租房相关信息
- func (c *Rcvr) GardenHouseRentChangeField(ctx context.Context, req *pb_v1.GardenHouseRentChangeFieldRequest) (reply *pb_v1.GardenHouseRentChangeFieldReply, err error) {
- t1 := func() error {
- reply, err = house_rent.GardenHouseRentChangeField(ctx, req)
- return err
- }
- return reply, rpctasker.Exec(ctx, t1)
- }
|