jinlin
2024-07-16 c2f855eb59e9d19d4957bc4cb51e3ca63d4ce4c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
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<List<ProjectModelTest>> page() {
        List<ProjectModelTest> data = projectModelService.page();
        return Result.ok(data);
    }
}