标签类型管理api方法个性化

This commit is contained in:
gaoqr
2026-08-10 16:45:39 +08:00
parent 851c6659ff
commit 3ac483a236
@@ -30,21 +30,21 @@ public class LabelTypeController {
@GetMapping("/list")
@Operation(summary = "获得标签类型列表")
@PreAuthorize("@ss.hasPermission('sysTagDesignManager:query')")
public CommonResult<List<LabelTypeRespVO>> getList(@RequestParam(value = "organId", required = false) Long organId) {
public CommonResult<List<LabelTypeRespVO>> getLabelTypeList(@RequestParam(value = "organId", required = false) Long organId) {
return success(labelTypeService.getLabelTypeList(organId));
}
@PostMapping("/create")
@Operation(summary = "创建自定义标签类型")
@PreAuthorize("@ss.hasPermission('sysTagDesignManager:create')")
public CommonResult<Long> create(@Valid @RequestBody LabelTypeSaveReqVO reqVO) {
public CommonResult<Long> createLabelType(@Valid @RequestBody LabelTypeSaveReqVO reqVO) {
return success(labelTypeService.createLabelType(reqVO));
}
@PutMapping("/update")
@Operation(summary = "修改自定义标签类型")
@PreAuthorize("@ss.hasPermission('sysTagDesignManager:update')")
public CommonResult<Boolean> update(@Valid @RequestBody LabelTypeSaveReqVO reqVO) {
public CommonResult<Boolean> updateLabelType(@Valid @RequestBody LabelTypeSaveReqVO reqVO) {
labelTypeService.updateLabelType(reqVO);
return success(true);
}
@@ -53,7 +53,7 @@ public class LabelTypeController {
@Operation(summary = "删除自定义标签类型")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sysTagDesignManager:delete')")
public CommonResult<Boolean> delete(@RequestParam("id") @NotNull Long id) {
public CommonResult<Boolean> deleteLabelType(@RequestParam("id") @NotNull Long id) {
labelTypeService.deleteLabelType(id);
return success(true);
}