feat: site stock
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user