大屏项目初始化
This commit is contained in:
@@ -2,12 +2,16 @@ package com.mini.mybigscreen.biz.controller;
|
||||
|
||||
import com.mini.mybigscreen.Model.Message;
|
||||
import com.mini.mybigscreen.Model.Result;
|
||||
import com.mini.mybigscreen.biz.service.HomeModuleGroupService;
|
||||
import com.mini.mybigscreen.biz.service.HomeModuleService;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
@@ -17,6 +21,13 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RequestMapping("/biz/homeModule")
|
||||
public class HomeModuleController {
|
||||
|
||||
@Resource
|
||||
private HomeModuleService moduleService;
|
||||
|
||||
@GetMapping("list")
|
||||
public Result<?> getList() {
|
||||
return Result.success(moduleService.list());
|
||||
}
|
||||
|
||||
public Result<Message> save() {
|
||||
return Result.success(new Message("数据新增成功", 200));
|
||||
|
||||
Reference in New Issue
Block a user