feat: site stock

This commit is contained in:
fernanda-one
2024-08-24 01:49:14 +07:00
parent 56f7baf21d
commit 57f019b1e9
5 changed files with 5 additions and 2 deletions
@@ -284,6 +284,7 @@ func (h *Handler) toProductResponse(resp *entity.Product) response.Product {
SiteID: resp.SiteID,
IsSeasonTicket: resp.IsSeasonTicket,
IsWeekendTicket: resp.IsWeekendTicket,
Stock: resp.Stock,
}
}
+1
View File
@@ -324,6 +324,7 @@ func (h *Handler) toProductResponseList(products []entity.Product) []response.Pr
Description: product.Description,
CreatedAt: product.CreatedAt.Format(time.RFC3339),
UpdatedAt: product.UpdatedAt.Format(time.RFC3339),
Stock: product.Stock,
})
}
return res