mirror of
https://github.com/WeiYe-Jing/datax-web.git
synced 2026-07-03 21:08:58 +08:00
fix: 改用dto来接收,之前用String接收会出错;
This commit is contained in:
parent
a3f879590d
commit
11fe2f0c67
@ -128,13 +128,13 @@ public class JobController {
|
||||
/**
|
||||
* 通过接口传入json配置启动一个datax作业
|
||||
*
|
||||
* @param jobJson
|
||||
* @param runJobDto
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation("通过传入json配置启动一个datax作业")
|
||||
@PostMapping("/runJob")
|
||||
public R<String> runJob(@RequestBody String jobJson) {
|
||||
String result = iDataxJobService.startJobByJsonStr(jobJson);
|
||||
public R<String> runJob(@RequestBody RunJobDto runJobDto) {
|
||||
String result = iDataxJobService.startJobByJsonStr(runJobDto.getJobJson());
|
||||
return R.ok(result);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user