This commit is contained in:
aditya.siregar
2024-08-14 23:44:34 +07:00
parent 99a569afb3
commit 1a9d04a2d9
3 changed files with 8 additions and 20 deletions
+2 -2
View File
@@ -1,7 +1,6 @@
package site
import (
"fmt"
"furtuna-be/internal/common/errors"
"furtuna-be/internal/entity"
"furtuna-be/internal/handlers/request"
@@ -288,7 +287,8 @@ func (h *Handler) toSiteResponse(resp *entity.Site) response.Site {
CreatedAt: resp.CreatedAt.Format(time.RFC3339),
UpdatedAt: resp.UpdatedAt.Format(time.RFC3339),
Products: h.toProductResponseList(resp.Products),
LatLong: fmt.Sprintf("%f,%f", resp.Lat, resp.Long),
Lat: resp.Lat,
Long: resp.Long,
}
}