/** * 查看商品详细信息 * * @return */ public String getGoodsInfo() { goods = goodsService.getGoodsById(id); return SUCCESS; }
/** * 模糊查询商品 * * @return */ public String getSearchGoodsList() { list = goodsService.getSearchList(key); return SUCCESS; }
/** 用户首页商品列表 */ public String getGoodsList() { // 调用方法获取商品集合 list = goodsService.getAllGoods(); return SUCCESS; }