Add enable field to ToolBase and ToolTemplate

This commit is contained in:
2024-01-19 18:27:34 +08:00
parent cec9a9e07b
commit 3da5260ddd
18 changed files with 90 additions and 29 deletions

View File

@@ -25,6 +25,11 @@ class BaseController(
fun get(): ResponseResult<List<ToolBaseVo>> =
ResponseResult.databaseSuccess(data = toolBaseService.get())
@Operation(summary = "获取基板列表")
@GetMapping("/list")
fun getList(): ResponseResult<List<ToolBaseVo>> =
ResponseResult.databaseSuccess(data = toolBaseService.getList())
@Operation(summary = "新增基板")
@PostMapping
fun add(@RequestBody @Valid toolBaseAddParam: ToolBaseAddParam): ResponseResult<ToolBaseVo> =