package org.springblade.modules.sqlAsyc;
|
|
import lombok.AllArgsConstructor;
|
import org.springblade.modules.system.service.MyAsyncService;
|
import org.springframework.web.bind.annotation.*;
|
|
/**
|
* sql 同步内网
|
* @author zhongrj
|
* @since 2022-06-21
|
*/
|
@RestController
|
@RequestMapping("/sql")
|
@AllArgsConstructor
|
public class SqlAsyncController {
|
|
private final MyAsyncService myAsyncService;
|
|
/**
|
* sql 同步
|
*/
|
@PostMapping("/async")
|
public void sqlAsyc(@RequestBody Sql sql){
|
myAsyncService.FTP(sql.getSql());
|
}
|
}
|