Add ExtendProductWithProviders().

This commit is contained in:
Gucheng Wang
2022-08-07 15:44:57 +08:00
parent 2ea58cd639
commit 32b4d98c2a
4 changed files with 19 additions and 43 deletions

View File

@ -58,7 +58,10 @@ func (c *ApiController) GetProducts() {
func (c *ApiController) GetProduct() {
id := c.Input().Get("id")
c.Data["json"] = object.GetProduct(id)
product := object.GetProduct(id)
object.ExtendProductWithProviders(product)
c.Data["json"] = product
c.ServeJSON()
}