package com.zt.life.modules.mainPart.test.controller; import com.zt.common.servlet.Result; import com.zt.life.modules.mainPart.test.model.ProjectModelTest; import com.zt.life.modules.mainPart.test.service.ProjectModelTestService; import io.swagger.annotations.ApiOperation; 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; import java.util.List; @RestController @RequestMapping("/maintain/projectModel") public class ProjectModelTestController { @Autowired private ProjectModelTestService projectModelService; @GetMapping("pageTest") @ApiOperation("列表") public Result> page() { List data = projectModelService.page(); return Result.ok(data); } }