fix(接口测试): 修复接口定时任务开启关闭提示无权限的缺陷
--bug=1039444 --user=王孝刚 【接口测试】接口定时导入-定时任务列表-开启/关闭提示无权限 https://www.tapd.cn/55049933/s/1498189
This commit is contained in:
parent
7539d83bda
commit
a019ac1aa9
|
@ -45,7 +45,7 @@ public class ApiDefinitionScheduleController {
|
||||||
@GetMapping(value = "/switch/{id}")
|
@GetMapping(value = "/switch/{id}")
|
||||||
@Operation(summary = "接口测试-接口管理-定时同步-开启/关闭")
|
@Operation(summary = "接口测试-接口管理-定时同步-开启/关闭")
|
||||||
@RequiresPermissions(PermissionConstants.PROJECT_API_DEFINITION_IMPORT)
|
@RequiresPermissions(PermissionConstants.PROJECT_API_DEFINITION_IMPORT)
|
||||||
@CheckOwner(resourceId = "#id", resourceType = "api_definition_swagger")
|
@CheckOwner(resourceId = "#id", resourceType = "schedule")
|
||||||
public void updateScheduleEnable(@PathVariable String id) {
|
public void updateScheduleEnable(@PathVariable String id) {
|
||||||
apiDefinitionScheduleService.switchSchedule(id);
|
apiDefinitionScheduleService.switchSchedule(id);
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ public class ApiDefinitionScheduleController {
|
||||||
@GetMapping("/delete/{id}")
|
@GetMapping("/delete/{id}")
|
||||||
@Operation(summary = "接口测试-接口管理-定时同步-删除")
|
@Operation(summary = "接口测试-接口管理-定时同步-删除")
|
||||||
@RequiresPermissions(PermissionConstants.PROJECT_API_DEFINITION_IMPORT)
|
@RequiresPermissions(PermissionConstants.PROJECT_API_DEFINITION_IMPORT)
|
||||||
@CheckOwner(resourceId = "#id", resourceType = "api_definition_swagger")
|
@CheckOwner(resourceId = "#id", resourceType = "schedule")
|
||||||
public void deleteSchedule(@PathVariable String id) {
|
public void deleteSchedule(@PathVariable String id) {
|
||||||
apiDefinitionScheduleService.deleteSchedule(id);
|
apiDefinitionScheduleService.deleteSchedule(id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue