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.pagemodel.OsERVO; import com.vci.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 gridLifeCycle(BaseQueryObject baseQueryObject){ return lifeCycleService.gridLifeCycle(baseQueryObject); } /** * 生命周期的链接线 * @param id 编号 * @return ER图内容 */ @GetMapping("/listLinesPic") public BaseResult listLinesPic(String id){ return BaseResult.success(lifeCycleService.listLinesPic(id)); } }