refactor(用例管理): 调整功能用例关联其他用例校验问题
This commit is contained in:
parent
a00711c533
commit
f42e9f274e
|
@ -86,7 +86,7 @@ public class FunctionalTestCaseController {
|
||||||
@PostMapping("/has/associate/case/page")
|
@PostMapping("/has/associate/case/page")
|
||||||
@Operation(summary = "用例管理-功能用例-关联其他用例-获取已关联的用例列表")
|
@Operation(summary = "用例管理-功能用例-关联其他用例-获取已关联的用例列表")
|
||||||
@RequiresPermissions(value = {PermissionConstants.FUNCTIONAL_CASE_READ, PermissionConstants.FUNCTIONAL_CASE_READ_UPDATE, PermissionConstants.FUNCTIONAL_CASE_READ_DELETE}, logical = Logical.OR)
|
@RequiresPermissions(value = {PermissionConstants.FUNCTIONAL_CASE_READ, PermissionConstants.FUNCTIONAL_CASE_READ_UPDATE, PermissionConstants.FUNCTIONAL_CASE_READ_DELETE}, logical = Logical.OR)
|
||||||
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
|
@CheckOwner(resourceId = "#request.sourceId", resourceType = "functional_case")
|
||||||
public Pager<List<FunctionalCaseTestDTO>> getAssociateOtherCaseList(@Validated @RequestBody FunctionalCaseTestRequest request) {
|
public Pager<List<FunctionalCaseTestDTO>> getAssociateOtherCaseList(@Validated @RequestBody FunctionalCaseTestRequest request) {
|
||||||
Page<Object> page = PageHelper.startPage(request.getCurrent(), request.getPageSize());
|
Page<Object> page = PageHelper.startPage(request.getCurrent(), request.getPageSize());
|
||||||
return PageUtils.setPageInfo(page, functionalTestCaseService.hasAssociatePage(request));
|
return PageUtils.setPageInfo(page, functionalTestCaseService.hasAssociatePage(request));
|
||||||
|
|
|
@ -8,7 +8,7 @@ import lombok.Data;
|
||||||
@Data
|
@Data
|
||||||
public class DisassociateOtherCaseRequest extends BaseFunctionalCaseBatchDTO {
|
public class DisassociateOtherCaseRequest extends BaseFunctionalCaseBatchDTO {
|
||||||
|
|
||||||
@Schema(description = "功能用例选择的项目id", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "功能用例id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@NotBlank(message = "{functional_case.id.not_blank}")
|
@NotBlank(message = "{functional_case.id.not_blank}")
|
||||||
private String caseId;
|
private String caseId;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue