| | |
| | | .last("limit 1"))); |
| | | } |
| | | |
| | | @PreAuthorize("hasAnyAuthority('system:aiParam:save','system:aiParam:update')") |
| | | @PostMapping("/aiParam/validate-draft") |
| | | public R validateDraft(@RequestBody AiParam aiParam) { |
| | | aiParam.setTenantId(getTenantId()); |
| | | return R.ok().add(aiParamService.validateDraft(aiParam, getTenantId())); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:aiParam:save')") |
| | | @OperationLog("Create AiParam") |
| | | @PostMapping("/aiParam/save") |
| | |
| | | return R.ok("Update Success").add(aiParam); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:aiParam:update')") |
| | | @OperationLog("Set Default AiParam") |
| | | @PostMapping("/aiParam/set-default/{id}") |
| | | public R setDefault(@PathVariable Long id) { |
| | | return R.ok("Update Success").add(aiParamService.setDefaultParam(id, getTenantId(), getLoginUserId())); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:aiParam:remove')") |
| | | @OperationLog("Delete AiParam") |
| | | @PostMapping("/aiParam/remove/{ids}") |