fix: detail site
This commit is contained in:
@@ -286,6 +286,7 @@ func (h *Handler) toSiteResponse(resp *entity.Site) response.Site {
|
||||
IsDiscountActive: resp.IsDiscountActive,
|
||||
CreatedAt: resp.CreatedAt.Format(time.RFC3339),
|
||||
UpdatedAt: resp.UpdatedAt.Format(time.RFC3339),
|
||||
Products: h.toProductResponseList(resp.Products),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ type Site struct {
|
||||
IsDiscountActive bool `json:"is_discount_active"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
Products []Product `json:"products"`
|
||||
}
|
||||
|
||||
type SiteName struct {
|
||||
|
||||
Reference in New Issue
Block a user