12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- package com.fjhx.flow.feign;
- import com.fjhx.flow.service.IFlowEngineService;
- import com.fjhx.myapp.application.entity.FlowParam;
- import com.fjhx.myapp.application.feign.IFlowApi;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * 流程 feign api
- */
- @RestController
- public class FlowApi implements IFlowApi {
- @Autowired
- private IFlowEngineService flowEngineService;
- /**
- * 开始流程
- *
- * @param param
- */
- @PostMapping(startFlow)
- @Override
- public Boolean startFlow(@RequestBody FlowParam param) {
- return flowEngineService.startFlow(param);
- }
- /**
- * 审批流程
- *
- * @param param
- * @return
- */
- @PostMapping(examineFlow)
- @Override
- public Boolean examineFlow(@RequestBody FlowParam param) {
- return flowEngineService.examineFlow(param);
- }
- /**
- * 驳回流程
- *
- * @param param
- * @return
- */
- @PostMapping(rejectFlow)
- @Override
- public Boolean rejectFlow(@RequestBody FlowParam param) {
- return flowEngineService.rejectFlow(param);
- }
- }
|