Ldc
2024-04-07 0652600959e5e3b5796fb6e8da129704ca95347a
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.vci.web.controller;
 
import com.vci.starter.web.pagemodel.BaseQueryObject;
import com.vci.starter.web.pagemodel.BaseResult;
import com.vci.starter.web.pagemodel.DataGrid;
import com.vci.web.pageModel.OsERVO;
import com.vci.web.pageModel.OsLifeCycleVO;
import com.vci.web.service.OsLifeCycleServiceI;
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;
 
/**
 * 生命周期的控制器
 * @author weidy
 * @date 2022-3-26
 */
@RequestMapping("/lifeCycleController")
@RestController
public class OsLifeCycleController {
 
    /**
     * 生命周期的服务
     */
    @Autowired
    private OsLifeCycleServiceI lifeCycleService;
 
    /**
     * 生命周期列表
     * @param baseQueryObject 基础查询对象,包含分页和查询
     * @return 生命周期的对象
     */
    @GetMapping("/gridLifeCycle")
    public DataGrid<OsLifeCycleVO> gridLifeCycle(BaseQueryObject baseQueryObject){
        return lifeCycleService.gridLifeCycle(baseQueryObject);
    }
 
    /**
     * 生命周期的链接线
     * @param id 编号
     * @return ER图内容
     */
    @GetMapping("/listLinesPic")
    public BaseResult<OsERVO> listLinesPic(String id){
        return BaseResult.success(lifeCycleService.listLinesPic(id));
    }
}