You've already forked FrameTour-BE
template sort
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user