mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 12:52:07 +08:00
标签类型管理api方法个性化
This commit is contained in:
+4
-4
@@ -30,21 +30,21 @@ public class LabelTypeController {
|
|||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
@Operation(summary = "获得标签类型列表")
|
@Operation(summary = "获得标签类型列表")
|
||||||
@PreAuthorize("@ss.hasPermission('sysTagDesignManager:query')")
|
@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));
|
return success(labelTypeService.getLabelTypeList(organId));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建自定义标签类型")
|
@Operation(summary = "创建自定义标签类型")
|
||||||
@PreAuthorize("@ss.hasPermission('sysTagDesignManager:create')")
|
@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));
|
return success(labelTypeService.createLabelType(reqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "修改自定义标签类型")
|
@Operation(summary = "修改自定义标签类型")
|
||||||
@PreAuthorize("@ss.hasPermission('sysTagDesignManager:update')")
|
@PreAuthorize("@ss.hasPermission('sysTagDesignManager:update')")
|
||||||
public CommonResult<Boolean> update(@Valid @RequestBody LabelTypeSaveReqVO reqVO) {
|
public CommonResult<Boolean> updateLabelType(@Valid @RequestBody LabelTypeSaveReqVO reqVO) {
|
||||||
labelTypeService.updateLabelType(reqVO);
|
labelTypeService.updateLabelType(reqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
}
|
}
|
||||||
@@ -53,7 +53,7 @@ public class LabelTypeController {
|
|||||||
@Operation(summary = "删除自定义标签类型")
|
@Operation(summary = "删除自定义标签类型")
|
||||||
@Parameter(name = "id", description = "编号", required = true)
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
@PreAuthorize("@ss.hasPermission('sysTagDesignManager:delete')")
|
@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);
|
labelTypeService.deleteLabelType(id);
|
||||||
return success(true);
|
return success(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user