Customer Order

This commit is contained in:
aditya.siregar
2024-08-04 01:16:25 +07:00
parent 265dd9b6e8
commit bdf930445c
30 changed files with 832 additions and 43 deletions
+5
View File
@@ -28,6 +28,7 @@ type Site struct {
Latitude *float64 `json:"latitude"`
Longitude *float64 `json:"longitude"`
Region string `json:"region"`
Regency string `json:"regency"`
Distance float64 `json:"distance"`
}
@@ -78,6 +79,10 @@ func (e *SiteDB) ToSite() *Site {
DeletedAt: e.DeletedAt,
CreatedBy: e.CreatedBy,
UpdatedBy: e.UpdatedBy,
Regency: e.Regency,
Region: e.Region,
Latitude: e.Latitude,
Longitude: e.Longitude,
Products: e.Products,
}
}