diff --git a/internal/handlers/http/sites/sites.go b/internal/handlers/http/sites/sites.go index 449acee..0bc8c6f 100644 --- a/internal/handlers/http/sites/sites.go +++ b/internal/handlers/http/sites/sites.go @@ -289,6 +289,8 @@ func (h *Handler) toSiteResponse(resp *entity.Site) response.Site { Products: h.toProductResponseList(resp.Products), Lat: *resp.Latitude, Long: *resp.Longitude, + Region: resp.Region, + Regency: resp.Regency, } } diff --git a/internal/handlers/response/site.go b/internal/handlers/response/site.go index 7af14d7..ee365d5 100644 --- a/internal/handlers/response/site.go +++ b/internal/handlers/response/site.go @@ -20,6 +20,8 @@ type Site struct { Products []Product `json:"products"` Lat float64 `json:"lat"` Long float64 `json:"long"` + Region string `json:"region"` + Regency string `json:"regency"` } type SiteName struct {