|  |  |  | 
|---|
|  |  |  | @PreventRepeat | 
|---|
|  |  |  | @ApiOperation("新建") | 
|---|
|  |  |  | @PostMapping("/create") | 
|---|
|  |  |  | //    @RequiresPermissions("business:basecategory:create") | 
|---|
|  |  |  | @RequiresPermissions("business:basecategory:create") | 
|---|
|  |  |  | public ApiResponse create(@RequestBody BaseCategoryRequest baseCategory) { | 
|---|
|  |  |  | return ApiResponse.success(baseCategoryService.create(baseCategory)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("根据ID查询") | 
|---|
|  |  |  | @GetMapping("/{id}") | 
|---|
|  |  |  | //    @RequiresPermissions("business:basecategory:query") | 
|---|
|  |  |  | @RequiresPermissions("business:basecategory:query") | 
|---|
|  |  |  | public ApiResponse findById(@PathVariable Integer id) { | 
|---|
|  |  |  | return ApiResponse.success(baseCategoryService.findById(id)); | 
|---|
|  |  |  | } | 
|---|