| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | /** |
| | | * Created by vincent on 2023/6/12 |
| | | */ |
| | |
| | | |
| | | @PostMapping("/bus/submit") |
| | | @OperationLog("generate task from open api") |
| | | public R submit(@RequestBody OpenBusSubmitParam param) { |
| | | public R submit(@RequestBody OpenBusSubmitParam param, HttpServletRequest request) { |
| | | IntegrationRecord integrationRecord = new IntegrationRecord( |
| | | null, // 编号 |
| | | null, // 名称空间 |
| | |
| | | null, // 修改时间[非空] |
| | | null // 备注 |
| | | ); |
| | | request.setAttribute("integrationRecord", integrationRecord); |
| | | |
| | | mainService.generateBusAndTask(param, null); |
| | | return R.ok("generate tasks success"); |