添加基础代码生成器,项目管理子模块
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user