0517 ljc
This commit is contained in:
parent
42dc4fb51e
commit
6b34993a07
@ -0,0 +1,67 @@
|
||||
package cd.casic.ci.common.pipeline.resp.target;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author HopeLi
|
||||
* @version v1.0
|
||||
* @ClassName TargetVersion
|
||||
* @Date: 2025/5/17 10:23
|
||||
* @Description:
|
||||
*/
|
||||
@Data
|
||||
public class TargetVersionResp {
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 目标id
|
||||
*/
|
||||
private String targetId;
|
||||
|
||||
/**
|
||||
* 目标类型
|
||||
*/
|
||||
private String targetType;
|
||||
|
||||
/**
|
||||
* 版本
|
||||
*/
|
||||
private String version;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String targetDesc;
|
||||
|
||||
/**
|
||||
* 文件唯一标识
|
||||
*/
|
||||
private String identifier;
|
||||
|
||||
/**
|
||||
* 文件大小(byte)
|
||||
*/
|
||||
private Double fileSize;
|
||||
|
||||
/**
|
||||
* 文件名字
|
||||
*/
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
private String fileType;
|
||||
|
||||
/**
|
||||
* 密级
|
||||
* 人员:1一般,2重要,3核心
|
||||
* 文件/功能:1公开 2内部 3秘密 4机密
|
||||
*/
|
||||
private String secretId;
|
||||
|
||||
/**
|
||||
* 文件地址路径
|
||||
*/
|
||||
private String filePath;
|
||||
}
|
@ -6,6 +6,7 @@ import cd.casic.ci.common.pipeline.req.target.TargetQueryReq;
|
||||
import cd.casic.ci.common.pipeline.resp.target.TargetManagerResp;
|
||||
import cd.casic.ci.common.pipeline.utils.PageResult;
|
||||
import cd.casic.ci.process.process.dataObject.base.BaseIdReq;
|
||||
import cd.casic.ci.process.process.dataObject.target.TargetVersion;
|
||||
import cd.casic.ci.process.process.service.target.TargetManagerService;
|
||||
import cd.casic.ci.process.process.service.target.TargetVersionService;
|
||||
import cd.casic.framework.commons.pojo.CommonResult;
|
||||
@ -77,4 +78,13 @@ public class TargetController {
|
||||
|
||||
return CommonResult.success(respList);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping(path="/selectListByManagerId")
|
||||
public CommonResult<List<TargetVersion>> selectListByManagerId(@RequestBody @Valid BaseIdReq query){
|
||||
|
||||
List<TargetVersion> respList = targetVersionService.selectListByManagerId(query.getId());
|
||||
|
||||
return CommonResult.success(respList);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user