Add Checkin
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package site
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"furtuna-be/internal/common/errors"
|
||||
"furtuna-be/internal/entity"
|
||||
"furtuna-be/internal/handlers/request"
|
||||
@@ -287,6 +288,7 @@ 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),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user