添加基础代码生成器,项目管理子模块

This commit is contained in:
mi9688
2024-09-25 12:46:42 +08:00
parent d14f215f3a
commit 9218c1a510
6 changed files with 241 additions and 0 deletions

View File

@ -0,0 +1,32 @@
package com.fastbee.data.controller.project;
import com.fastbee.common.core.controller.BaseController;
import com.fastbee.common.core.page.TableDataInfo;
import com.fastbee.project.service.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 项目表 前端控制器
* </p>
*
* @author 蒾酒
* @since 2024-09-24
*/
@RestController
@RequestMapping("/project")
public class ProjectController extends BaseController {
@Autowired
private ProjectService projectService;
@GetMapping("/list")
public TableDataInfo getPageList(){
super.startPage();
return super.getDataTable(projectService.list());
}
}