Compare commits

...

4 Commits

Author SHA1 Message Date
even
5a0f2beb09 返回值方法修改 2025-05-12 09:38:15 +08:00
even
a48ed89227 Merge branch 'temp' of http://1.14.125.6:3000/mianbin/ops-pro into temp 2025-05-12 09:36:41 +08:00
even
89dc336a81 多余import 2025-05-12 09:34:49 +08:00
even
05fb76ebbc 部分接口解除注释 2025-05-12 09:32:48 +08:00

View File

@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
@ -270,57 +271,58 @@ public class StageController {
return CommonResult.success(tasks);
}
// /**
// * @pi.name:更新流水线阶段任务
// * @pi.path:/stage/createStage
// * @pi.methodType:post
// * @pi.request-type:json
// * @pi.param: model=stage
// */
// @RequestMapping(path="/updateStage",method = RequestMethod.POST)
// public Result<Void> updateStageTask(@RequestBody @Valid @NotNull Stage stage){
/**
* @pi.name:更新流水线阶段任务
* @pi.path:/stage/createStage
* @pi.methodType:post
* @pi.request-type:json
* @pi.param: model=stage
*/
@RequestMapping(path="/updateStage",method = RequestMethod.POST)
public CommonResult<Void> updateStageTask(@RequestBody @Valid @NotNull StageReq stage){
// stageService.updateStagesTask(stage);
// return Result.ok();
// }
//
// /**
// * @pi.name:更新流水线阶段名称
// * @pi.path:/stage/updateStageName
// * @pi.methodType:post
// * @pi.request-type:json
// * @pi.param: model=stage
// */
// @RequestMapping(path="/updateStageName",method = RequestMethod.POST)
// public Result<Void> updateTasksStage(@RequestBody @Valid @NotNull Stage stage){
return CommonResult.success();
}
/**
* @pi.name:更新流水线阶段名称
* @pi.path:/stage/updateStageName
* @pi.methodType:post
* @pi.request-type:json
* @pi.param: model=stage
*/
@RequestMapping(path="/updateStageName",method = RequestMethod.POST)
public CommonResult<Void> updateTasksStage(@RequestBody @Valid @NotNull StageReq stage){
// stageService.updateStageName(stage);
// return Result.ok();
// }
//
// /**
// * @pi.name:删除流水线阶段及任务
// * @pi.path:/stage/deleteStage
// * @pi.methodType:post
// * @pi.request-type: formdata
// * @pi.param: name=taskId;dataType=string;value=taskId;
// */
// @RequestMapping(path="/deleteStage",method = RequestMethod.POST)
// public Result<Void> deleteTasksOrStage(@NotNull String taskId){
return CommonResult.success();
}
/**
* @pi.name:删除流水线阶段及任务
* @pi.path:/stage/deleteStage
* @pi.methodType:post
* @pi.request-type: formdata
* @pi.param: name=taskId;dataType=string;value=taskId;
*/
@RequestMapping(path="/deleteStage",method = RequestMethod.POST)
public CommonResult<Void> deleteTasksOrStage(@NotNull String taskId){
// stageService.deleteStagesOrTask(taskId);
// return Result.ok();
// }
//
// /**
// * @pi.name:效验流水线各个配置阶段完整性
// * @pi.path:/stage/validStagesMustField
// * @pi.methodType:post
// * @pi.request-type: formdata
// * @pi.param: name=pipelineId;dataType=string;value=流水线Id;
// */
// @RequestMapping(path="/validStagesMustField",method = RequestMethod.POST)
// public Result<List<String>> validStagesMustField(@NotNull String pipelineId){
return CommonResult.success();
}
/**
* @pi.name:效验流水线各个配置阶段完整性
* @pi.path:/stage/validStagesMustField
* @pi.methodType:post
* @pi.request-type: formdata
* @pi.param: name=pipelineId;dataType=string;value=流水线Id;
*/
@RequestMapping(path="/validStagesMustField",method = RequestMethod.POST)
public CommonResult<List<String>> validStagesMustField(@NotNull String pipelineId){
// List<String> list = stageService.validStagesMustField(pipelineId);
// return Result.ok(list);
// }
// return CommonResult.ok(list);
return CommonResult.success(Collections.emptyList());
}