| | |
| | | /** |
| | | * 查询类目列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('mall:category:list')") |
| | | // @PreAuthorize("@ss.hasPermi('mall:category:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询类目列表") |
| | | public TableDataInfo list(MallCategory mallCategory) { |
| | |
| | | /** |
| | | * 导出类目列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('mall:category:export')") |
| | | // @PreAuthorize("@ss.hasPermi('mall:category:export')") |
| | | @Log(title = "类目", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, MallCategory mallCategory) { |
| | |
| | | * 获取类目详细信息 |
| | | */ |
| | | @ApiOperation(value = "获取类目详细信息") |
| | | @PreAuthorize("@ss.hasPermi('mall:category:query')") |
| | | // @PreAuthorize("@ss.hasPermi('mall:category:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(mallCategoryService.selectMallCategoryById(id)); |
| | |
| | | * 新增类目 |
| | | */ |
| | | @ApiOperation(value = "新增类目") |
| | | @PreAuthorize("@ss.hasPermi('mall:category:add')") |
| | | // @PreAuthorize("@ss.hasPermi('mall:category:add')") |
| | | @Log(title = "类目", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody MallCategory mallCategory) { |
| | |
| | | * 修改类目 |
| | | */ |
| | | @ApiOperation(value = "修改类目") |
| | | @PreAuthorize("@ss.hasPermi('mall:category:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('mall:category:edit')") |
| | | @Log(title = "类目", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody MallCategory mallCategory) { |
| | |
| | | * 删除类目 |
| | | */ |
| | | @ApiOperation(value = "删除类目") |
| | | @PreAuthorize("@ss.hasPermi('mall:category:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('mall:category:remove')") |
| | | @Log(title = "类目", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |