From 235b7cb662ec3db880977d0005f14140beee4f56 Mon Sep 17 00:00:00 2001 From: ganger Date: Sun, 5 May 2024 01:23:27 +0300 Subject: [PATCH] formated adres point --- internal/pkg/adverts/repo/postgres.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/pkg/adverts/repo/postgres.go b/internal/pkg/adverts/repo/postgres.go index 032e507..3d7acdb 100644 --- a/internal/pkg/adverts/repo/postgres.go +++ b/internal/pkg/adverts/repo/postgres.go @@ -334,7 +334,7 @@ func (r *AdvertRepo) GetHouseAdvertById(ctx context.Context, id int64) (*models. s.name, t.name, p.name, - ad.address_point, + ST_AsText(ad.address_point::geometry), h.ceiling_height, h.square_area, h.square_house, @@ -917,7 +917,7 @@ func (r *AdvertRepo) GetFlatAdvertById(ctx context.Context, id int64) (*models.A s.name, t.name, p.name, - ad.address_point, + ST_AsText(ad.address_point::geometry), f.floor, f.ceiling_height, f.square_general, @@ -1231,7 +1231,7 @@ func (r *AdvertRepo) GetRectangleAdverts(ctx context.Context, advertFilter model SELECT f.square_general, f.floor, - ad.address_point, + ST_AsText(ad.address_point::geometry), ad.metro, hn.name, s.name, @@ -1253,7 +1253,7 @@ func (r *AdvertRepo) GetRectangleAdverts(ctx context.Context, advertFilter model a.created_at DESC;` queryHouse := ` SELECT - ad.address_point, + ST_AsText(ad.address_point::geometry), ad.metro, hn.name, s.name,