Files
my-bigScreen/src/main/java/com/mini/mybigscreen/biz/controller/HomeModuleController.java

43 lines
1.1 KiB
Java
Raw Normal View History

2026-02-27 14:51:21 +08:00
package com.mini.mybigscreen.biz.controller;
2026-03-05 19:04:12 +08:00
import com.mini.mybigscreen.Model.Message;
import com.mini.mybigscreen.Model.Result;
2026-03-07 19:08:40 +08:00
import com.mini.mybigscreen.biz.service.HomeModuleService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
2026-03-08 13:05:57 +08:00
import org.springframework.web.bind.annotation.PostMapping;
2026-02-27 14:51:21 +08:00
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
2026-03-07 19:08:40 +08:00
* 前端控制器
2026-02-27 14:51:21 +08:00
* </p>
*
* @author gaoxq
* @since 2026-02-27
*/
@RestController
@RequestMapping("/biz/homeModule")
public class HomeModuleController {
2026-03-07 19:08:40 +08:00
@Resource
private HomeModuleService moduleService;
@GetMapping("list")
public Result<?> getList() {
return Result.success(moduleService.list());
}
2026-03-05 19:04:12 +08:00
public Result<Message> save() {
2026-03-06 10:47:14 +08:00
return Result.success(new Message("数据新增成功", 200));
2026-03-05 19:04:12 +08:00
}
2026-03-08 13:05:57 +08:00
@PostMapping("delete")
public Result<Message> delete(String moduleId) {
System.out.println(moduleId);
2026-03-06 10:47:14 +08:00
return Result.success(new Message("数据删除成功", 200));
2026-03-05 19:04:12 +08:00
}
2026-02-27 14:51:21 +08:00
}