This commit is contained in:
feng
2025-12-29 15:56:59 +08:00
parent a6935d9f42
commit 10c2b4737f
@@ -9,25 +9,24 @@ import org.springframework.web.bind.annotation.*;
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/anon/screen-animation")
public class ScreenAnimationController {
private final ScreenAnimationService screenAnimationService;
@Operation(summary = "查询大屏开屏动画", description = "查询大屏开屏动画")
@GetMapping(value = "/query")
@GetMapping(value = "/api/anon/screen-animation/query")
public Result<ScreenAnimationVO> queryScreenAnimation() {
return Result.OK(screenAnimationService.queryScreenAnimation());
}
@Operation(summary = "删除开屏动画", description = "删除开屏动画")
@DeleteMapping(value = "/delete")
@DeleteMapping(value = "/screen/animation/delete")
public Result<ScreenAnimationVO> deleteScreenAnimation(@RequestParam("id") String id) {
screenAnimationService.deleteScreenAnimation(id);
return Result.OK("删除成功");
}
@Operation(summary = "新增或编辑开屏动画", description = "新增或编辑开屏动画")
@PostMapping(value = "/saveOrUpdate")
@PostMapping(value = "/screen/animation/saveOrUpdate")
public Result<String> saveOrUpdateScreenAnimation(@RequestBody ScreenAnimationVO screenAnimationVO) {
return Result.OK(screenAnimationService.saveOrUpdateScreenAnimation(screenAnimationVO));
}