|
|
|
@ -39,14 +39,14 @@ public class TagLibraryController {
|
|
|
|
|
|
|
|
|
|
@PostMapping("/create") |
|
|
|
|
@Operation(summary = "创建企业标签") |
|
|
|
|
@PreAuthorize("@ss.hasPermission('system:tag-library:create')") |
|
|
|
|
// @PreAuthorize("@ss.hasPermission('system:tag-library:create')")
|
|
|
|
|
public CommonResult<Integer> createTagLibrary(@Valid @RequestBody TagLibrarySaveReqVO createReqVO) { |
|
|
|
|
return success(tagLibraryService.createTagLibrary(createReqVO)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@PutMapping("/update") |
|
|
|
|
@Operation(summary = "更新企业标签") |
|
|
|
|
@PreAuthorize("@ss.hasPermission('system:tag-library:update')") |
|
|
|
|
// @PreAuthorize("@ss.hasPermission('system:tag-library:update')")
|
|
|
|
|
public CommonResult<Boolean> updateTagLibrary(@Valid @RequestBody TagLibrarySaveReqVO updateReqVO) { |
|
|
|
|
tagLibraryService.updateTagLibrary(updateReqVO); |
|
|
|
|
return success(true); |
|
|
|
@ -55,7 +55,7 @@ public class TagLibraryController {
|
|
|
|
|
@DeleteMapping("/delete") |
|
|
|
|
@Operation(summary = "删除企业标签") |
|
|
|
|
@Parameter(name = "id", description = "编号", required = true) |
|
|
|
|
@PreAuthorize("@ss.hasPermission('system:tag-library:delete')") |
|
|
|
|
// @PreAuthorize("@ss.hasPermission('system:tag-library:delete')")
|
|
|
|
|
public CommonResult<Boolean> deleteTagLibrary(@RequestParam("id") Integer id) { |
|
|
|
|
tagLibraryService.deleteTagLibrary(id); |
|
|
|
|
return success(true); |
|
|
|
@ -89,7 +89,7 @@ public class TagLibraryController {
|
|
|
|
|
|
|
|
|
|
@GetMapping("/childrenList") |
|
|
|
|
// @Operation(summary = "获得标签分页")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('system:tag-library:query')") |
|
|
|
|
// @PreAuthorize("@ss.hasPermission('system:tag-library:query')")
|
|
|
|
|
public CommonResult<List<TagLibraryRespVO>> childrenList(Long id) { |
|
|
|
|
List<TagLibraryDO> pageResult = tagLibraryService.childrenList(id); |
|
|
|
|
return success(BeanUtils.toBean(pageResult, TagLibraryRespVO.class)); |
|
|
|
|