template sort

This commit is contained in:
2025-07-27 11:06:33 +08:00
parent 74a8953c8f
commit 4d2a962bc6
4 changed files with 44 additions and 2 deletions

View File

@@ -68,6 +68,12 @@ public class TemplateController {
return templateService.sortTemplate(request.getTemplateId(), request.getAfterTemplateId());
}
// 修改模板排序值
@PostMapping("/updateSort/{id}")
public ApiResponse<Boolean> updateSort(@PathVariable("id") Long id, @RequestParam Integer sort) {
return templateService.updateSort(id, sort);
}
@GetMapping("/config/{id}")
public ApiResponse<TemplateConfigEntity> getConfig(@PathVariable("id") Long id) {
return ApiResponse.success(templateService.getConfig(id));