Update Regency

This commit is contained in:
aditya.siregar 2024-08-19 20:26:01 +07:00
parent 3252456413
commit ddc2c4b4f4
2 changed files with 4 additions and 0 deletions

View File

@ -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,
}
}

View File

@ -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 {