| | |
| | | import cc.mrbird.febs.mall.service.IAdminMallGoodsService; |
| | | import cc.mrbird.febs.mall.service.IAdminMallMemberService; |
| | | import cc.mrbird.febs.mall.vo.AdminMailGoodsDetailVo; |
| | | import cc.mrbird.febs.mall.vo.AdminMailGoodsUpdateVo; |
| | | import cc.mrbird.febs.mall.vo.MallMemberVo; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | |
| | | */ |
| | | @GetMapping("goodsList") |
| | | @RequiresPermissions("goodsList:view") |
| | | public String categoryList() { |
| | | public String goodsList() { |
| | | return FebsUtil.view("modules/goods/goodsList"); |
| | | } |
| | | |
| | |
| | | */ |
| | | @GetMapping("goodsAdd") |
| | | @RequiresPermissions("goodsAdd:add") |
| | | public String helpCenterAdd() { |
| | | public String goodsAdd() { |
| | | return FebsUtil.view("modules/goods/goodsAddNew"); |
| | | } |
| | | |
| | |
| | | model.addAttribute("mailGoodsDetail", data); |
| | | return FebsUtil.view("modules/goods/detailGoods"); |
| | | } |
| | | |
| | | /** |
| | | * 商品-编辑-详情 |
| | | * @param id |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("goodsUpdateNew/{id}") |
| | | @RequiresPermissions("goodsUpdateNew:update") |
| | | public String goodsUpdate(@PathVariable long id, Model model) { |
| | | AdminMailGoodsUpdateVo data = mallGoodsService.getMallGoodsUpdateInfoById(id); |
| | | model.addAttribute("mailGoodsUpdate", data); |
| | | return FebsUtil.view("modules/goods/goodsUpdateNew"); |
| | | } |
| | | } |