review code.

This commit is contained in:
lijiahang
2021-11-17 22:48:15 +08:00
parent 14cb254139
commit a4017bbdda
8 changed files with 50 additions and 6 deletions
+1 -1
View File
@@ -172,7 +172,7 @@
<configuration>
<mainClass>com.orion.ops.OrionOpsServiceApplication</mainClass>
<layout>ZIP</layout>
<!-- 注释后和依赖包一起打包 取消注释则不打包依赖-->
<!-- 注释后和依赖包一起打包 取消注释则不打包依赖 -->
<includes>
<include>
<groupId>nothing</groupId>
@@ -0,0 +1,18 @@
package com.orion.ops.controller;
import com.orion.ops.annotation.RestWrapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 导出 api
*
* @author Jiahang Li
* @version 1.0.0
* @since 2021/8/3 18:43
*/
@RestController
@RestWrapper
@RequestMapping("/orion/api/export")
public class ExportController {
}
@@ -190,7 +190,7 @@ public class SftpController {
request.setMachineId(machineId);
request.setFileToken(fileToken);
request.setLocalPath(localPath);
request.setRemotePath(Files1.getPath(remotePath + "/" + file.getOriginalFilename()));
request.setRemotePath(Files1.getPath(remotePath, file.getOriginalFilename()));
request.setSize(file.getSize());
requestFiles.add(request);
}
@@ -0,0 +1,25 @@
package com.orion.ops.controller;
import com.orion.ops.annotation.RestWrapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 统计操作
*
* @author Jiahang Li
* @version 1.0.0
* @since 2021/8/19 15:27
*/
@RestController
@RestWrapper
@RequestMapping("/orion/api/statistics")
public class StatisticsController {
// 机器数
// 任务数
// 环境数
// 应用数
// 应用部署次数
}
@@ -8,6 +8,7 @@ import com.orion.ops.entity.domain.ReleaseMachineDO;
import com.orion.ops.entity.request.ApplicationReleaseBillRequest;
import com.orion.ops.entity.vo.ReleaseBillDetailVO;
import com.orion.ops.entity.vo.ReleaseBillListVO;
import com.orion.utils.io.Files1;
import java.util.List;
@@ -136,7 +137,7 @@ public interface ReleaseInfoService {
if (path == null) {
return null;
}
return MachineEnvAttr.DIST_PATH.getValue() + path;
return Files1.getPath(MachineEnvAttr.DIST_PATH.getValue(), path);
}
}
@@ -36,7 +36,7 @@
"children": [
{
"name": "批量执行",
"path": "/batch/exec"
"path": "/batch/exec/list"
},
{
"name": "日志面板",
@@ -32,7 +32,7 @@
"children": [
{
"name": "批量执行",
"path": "/batch/exec"
"path": "/batch/exec/list"
},
{
"name": "日志面板",
@@ -32,7 +32,7 @@
"children": [
{
"name": "批量执行",
"path": "/batch/exec"
"path": "/batch/exec/list"
},
{
"name": "日志面板",