|
|
|
@ -64,7 +64,7 @@ public class TagLibraryController {
|
|
|
|
|
@GetMapping("/get") |
|
|
|
|
@Operation(summary = "获得企业标签") |
|
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|
|
|
|
@PreAuthorize("@ss.hasPermission('system:tag-library:query')") |
|
|
|
|
// @PreAuthorize("@ss.hasPermission('system:tag-library:query')")
|
|
|
|
|
public CommonResult<TagLibraryRespVO> getTagLibrary(@RequestParam("id") Integer id) { |
|
|
|
|
TagLibraryDO tagLibrary = tagLibraryService.getTagLibrary(id); |
|
|
|
|
return success(BeanUtils.toBean(tagLibrary, TagLibraryRespVO.class)); |
|
|
|
@ -72,7 +72,7 @@ public class TagLibraryController {
|
|
|
|
|
|
|
|
|
|
@GetMapping("/page") |
|
|
|
|
@Operation(summary = "获得标签分页") |
|
|
|
|
@PreAuthorize("@ss.hasPermission('system:tag-library:query')") |
|
|
|
|
// @PreAuthorize("@ss.hasPermission('system:tag-library:query')")
|
|
|
|
|
public CommonResult<List<TagLibraryRespVO>> getTagLibraryPage(TagLibraryPageReqVO pageReqVO) { |
|
|
|
|
List<TagLibraryDO> pageResult = tagLibraryService.getTagLibraryPage(pageReqVO); |
|
|
|
|
return success(BeanUtils.toBean(pageResult, TagLibraryRespVO.class)); |
|
|
|
@ -80,7 +80,7 @@ public class TagLibraryController {
|
|
|
|
|
|
|
|
|
|
@GetMapping("/list") |
|
|
|
|
@Operation(summary = "获得标签分页") |
|
|
|
|
@PreAuthorize("@ss.hasPermission('system:tag-library:query')") |
|
|
|
|
// @PreAuthorize("@ss.hasPermission('system:tag-library:query')")
|
|
|
|
|
public CommonResult<List<TagLibraryRespVO>> getTagLibraryList(String[] codeList) { |
|
|
|
|
List<TagLibraryDO> pageResult = tagLibraryService.list(codeList); |
|
|
|
|
return success(BeanUtils.toBean(pageResult, TagLibraryRespVO.class)); |
|
|
|
@ -88,7 +88,7 @@ public class TagLibraryController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/childrenList") |
|
|
|
|
@Operation(summary = "获得标签分页") |
|
|
|
|
// @Operation(summary = "获得标签分页")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('system:tag-library:query')") |
|
|
|
|
public CommonResult<List<TagLibraryRespVO>> childrenList(Long id) { |
|
|
|
|
List<TagLibraryDO> pageResult = tagLibraryService.childrenList(id); |
|
|
|
|