package cd.casic.ci.api;

import cd.casic.ci.process.util.SftpUploadUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("/test")
public class TestController {
    @PostMapping("/upload")
    public void uploadTest(){

//        try {
////            SftpUploadUtil.uploadFileViaSftp("175.6.27.228",22,"hnidc", CryptogramUtil.doDecrypt("cb2ee50ff663312808773f1698b801d2f9d6073f9684473e090767edbc2dba93"),null,"/ops/ops-pro/ops-server.jar","/home/casic/706/ai_test_527","ops-server.jar");
//        } catch (SftpUploadUtil.SftpUploadException e) {
//            throw new RuntimeException(e);
//        }
    }
}
