package com.ruoyi.web.controller.project;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.invest.service.IFlowBaseInfoService;
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.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/project/flowBaseInfo")
public class FlowBaseInfoController extends BaseController {
    @Autowired
    private IFlowBaseInfoService flowBaseInfoService;
    /**
     * 获取流程审批详细信息
     */
    @ApiOperation("获取流程详细信息")
    @GetMapping(value = "/{procInstId}")
    public TableDataInfo getInfo(@PathVariable("procInstId") String procInstId)
    {
        return getDataTable(flowBaseInfoService.searchFlowBaseInfoByProcInsId(procInstId));
    }


}
