|  |  |  | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.core.model.PageData; | 
|---|
|  |  |  | import com.doumee.dao.business.model.BaseCategory; | 
|---|
|  |  |  | import com.doumee.dao.business.model.Category; | 
|---|
|  |  |  | import com.doumee.dao.business.model.dto.BaseCategoryRequest; | 
|---|
|  |  |  | import com.doumee.service.business.BaseCategoryService; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "根据ID修改-列表属性修改") | 
|---|
|  |  |  | @PostMapping("/updateById") | 
|---|
|  |  |  | //    @RequiresPermissions("business:basecategory:update") | 
|---|
|  |  |  | @PostMapping("/updateByIdOrigin") | 
|---|
|  |  |  | @RequiresPermissions("business:basecategory:update") | 
|---|
|  |  |  | public ApiResponse updateById(@RequestBody BaseCategory baseCategory) { | 
|---|
|  |  |  | baseCategoryService.updateById(baseCategory); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("修改状态") | 
|---|
|  |  |  | @PostMapping("/updateDisableById") | 
|---|
|  |  |  | @RequiresPermissions("business:basecategory:update") | 
|---|
|  |  |  | public ApiResponse updateDisableById(@RequestBody BaseCategory category) { | 
|---|
|  |  |  | baseCategoryService.updateDisableById(category); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param baseCategory 实体对象 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation("根据ID修改-编辑修改") | 
|---|
|  |  |  | @PostMapping("/update") | 
|---|
|  |  |  | //    @RequiresPermissions("business:basecategory:update") | 
|---|
|  |  |  | @PostMapping("/updateById") | 
|---|
|  |  |  | @RequiresPermissions("business:basecategory:update") | 
|---|
|  |  |  | public ApiResponse update(@RequestBody  BaseCategoryRequest baseCategory){ | 
|---|
|  |  |  | baseCategoryService.update(baseCategory); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("分页查询") | 
|---|
|  |  |  | @ApiOperation("分页查询`") | 
|---|
|  |  |  | @PostMapping("/page") | 
|---|
|  |  |  | //    @RequiresPermissions("business:basecategory:query") | 
|---|
|  |  |  | @RequiresPermissions("business:basecategory:query") | 
|---|
|  |  |  | public ApiResponse<PageData<BaseCategory>> findPage (@RequestBody PageWrap<BaseCategory> pageWrap) { | 
|---|
|  |  |  | return ApiResponse.success(baseCategoryService.findPage(pageWrap)); | 
|---|
|  |  |  | } | 
|---|