Skip to content

Commit

Permalink
fix(接口测试): 修复批量复制场景失败的缺陷
Browse files Browse the repository at this point in the history
--bug=1027272 --user=王孝刚 【接口测试】开启批量复制权限,功能失效
https://www.tapd.cn/55049933/s/1384600
  • Loading branch information
wxg0103 authored and fit2-zhao committed Jun 25, 2023
1 parent eb5ceb9 commit 5001c33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -259,7 +259,7 @@ public void bathEdit(@RequestBody ApiScenarioBatchRequest request) {
}

@PostMapping("/batch/copy")
@RequiresPermissions(value = {PermissionConstants.PROJECT_API_SCENARIO_READ_CREATE, PermissionConstants.PROJECT_API_SCENARIO_READ_COPY}, logical = Logical.OR)
@RequiresPermissions(value = {PermissionConstants.PROJECT_API_SCENARIO_READ_CREATE, PermissionConstants.PROJECT_API_SCENARIO_READ_BATCH_COPY}, logical = Logical.OR)
@MsAuditLog(module = OperLogModule.API_AUTOMATION, type = OperLogConstants.BATCH_ADD, beforeEvent = "#msClass.getLogDetails(#request.ids)", content = "#msClass.getLogDetails(#request.ids)", msClass = ApiAutomationService.class)
public void batchCopy(@RequestBody ApiScenarioBatchRequest request) {
apiAutomationService.batchCopy(request);
Expand Down
Expand Up @@ -20,7 +20,7 @@

@RestController
@RequestMapping(value = "/api/report")
public class APIReportController {
public class ApiReportController {

@Resource
private APIReportService apiReportService;
Expand Down Expand Up @@ -53,7 +53,6 @@ public Pager<List<APIReportResult>> list(@PathVariable int goPage, @PathVariable
}

@GetMapping("/get/{reportId}")
@RequiresPermissions(PermissionConstants.PROJECT_API_REPORT_READ)
public APIReportResult get(@PathVariable String reportId) {
return apiReportService.get(reportId);
}
Expand Down
Expand Up @@ -153,6 +153,7 @@ public class PermissionConstants {
public static final String PROJECT_API_SCENARIO_READ_EDIT = "PROJECT_API_SCENARIO:READ+EDIT";
public static final String PROJECT_API_SCENARIO_READ_DELETE = "PROJECT_API_SCENARIO:READ+DELETE";
public static final String PROJECT_API_SCENARIO_READ_COPY = "PROJECT_API_SCENARIO:READ+COPY";
public static final String PROJECT_API_SCENARIO_READ_BATCH_COPY = "PROJECT_API_SCENARIO:READ+BATCH_COPY";
public static final String PROJECT_API_SCENARIO_READ_RUN = "PROJECT_API_SCENARIO:READ+RUN";
public static final String PROJECT_API_SCENARIO_READ_DEBUG = "PROJECT_API_SCENARIO:READ+DEBUG";
public static final String PROJECT_API_SCENARIO_READ_SCHEDULE = "PROJECT_API_SCENARIO:READ+SCHEDULE";
Expand Down

0 comments on commit 5001c33

Please sign in to comment.