This commit is contained in:
HopeLi 2025-05-13 09:20:12 +08:00
parent 1ddbfb72c8
commit e3a4bb629d
2 changed files with 8 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import cd.casic.ci.common.pipeline.resp.pipeline.PipelineResp;
import cd.casic.framework.commons.dataobject.User; import cd.casic.framework.commons.dataobject.User;
import cd.casic.framework.commons.pojo.CommonResult; import cd.casic.framework.commons.pojo.CommonResult;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import jakarta.annotation.security.PermitAll;
import jakarta.validation.Valid; import jakarta.validation.Valid;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -27,6 +28,7 @@ import java.util.List;
@RequestMapping("/pipeline") @RequestMapping("/pipeline")
public class PipelineController { public class PipelineController {
@PermitAll
@PostMapping(path="/createPipeline") @PostMapping(path="/createPipeline")
public CommonResult<String> createPipeline(@RequestBody @NotNull @Valid PipelineReq pipelineReq){ public CommonResult<String> createPipeline(@RequestBody @NotNull @Valid PipelineReq pipelineReq){
@ -37,12 +39,17 @@ public class PipelineController {
} }
@PermitAll
@PostMapping(path="/findAllPipeline") @PostMapping(path="/findAllPipeline")
public CommonResult<List<PipelineResp>> findAllPipeline(){ public CommonResult<List<PipelineResp>> findAllPipeline(){
// List<PipelineResp> selectAllPipeline = pipelineService.findAllPipeline(); // List<PipelineResp> selectAllPipeline = pipelineService.findAllPipeline();
List<PipelineResp> selectAllPipeline = new ArrayList<>(0); List<PipelineResp> selectAllPipeline = new ArrayList<>(0);
PipelineResp pipeline = new PipelineResp();
pipeline.setId("1");
pipeline.setName("test数据交互测试");
selectAllPipeline.add(pipeline);
return CommonResult.success(selectAllPipeline); return CommonResult.success(selectAllPipeline);
} }

View File

@ -147,6 +147,7 @@ ops:
- /admin-api/system/tenant/get-by-website # 基于域名获取租户,不许带租户编号 - /admin-api/system/tenant/get-by-website # 基于域名获取租户,不许带租户编号
- /admin-api/system/auth/register # 注册 - /admin-api/system/auth/register # 注册
- /admin-api/system/auth/** - /admin-api/system/auth/**
- /admin-api/system/dict-data/**
ignore-tables: ignore-tables:
- system_tenant - system_tenant
- system_tenant_package - system_tenant_package