Search in sources :

Example 1 with SftpPackageType

use of com.orion.ops.consts.sftp.SftpPackageType in project orion-ops by lijiahangmax.

the class SftpController method transferPackage.

/**
 * 传输打包 全部已完成未删除的文件
 */
@RequestMapping("/transfer/{sessionToken}/{packageType}/package")
@EventLog(EventType.SFTP_PACKAGE)
public void transferPackage(@PathVariable("sessionToken") String sessionToken, @PathVariable("packageType") Integer packageType) {
    SftpPackageType sftpPackageType = Valid.notNull(SftpPackageType.of(packageType));
    sftpService.transferPackage(sessionToken, sftpPackageType);
}
Also used : SftpPackageType(com.orion.ops.consts.sftp.SftpPackageType) EventLog(com.orion.ops.annotation.EventLog)

Aggregations

EventLog (com.orion.ops.annotation.EventLog)1 SftpPackageType (com.orion.ops.consts.sftp.SftpPackageType)1