Commit c92cfa72 authored by maoying's avatar maoying

预案接口添加验证权限

parent 1afe21cd
......@@ -175,6 +175,7 @@ public class ContingencyPlanController extends AbstractBaseController {
}
}
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "启动")
@RequestMapping(value = "/start", method = RequestMethod.POST)
public ResponseModel start(@RequestBody ContingencyPlanParamVo vo) {
......@@ -196,6 +197,7 @@ public class ContingencyPlanController extends AbstractBaseController {
return CommonResponseUtil2.success(result);
}
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "装备确景")
@RequestMapping(value = "/scene", method = RequestMethod.GET)
public ResponseModel scene(@ApiParam(value = "装备Id", required = true) String equipmentId,
......@@ -208,6 +210,7 @@ public class ContingencyPlanController extends AbstractBaseController {
}
}
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "预案启动记录分页列表")
@RequestMapping(value = "/record/page", method = RequestMethod.GET)
public ResponseModel recordList(
......@@ -229,6 +232,7 @@ public class ContingencyPlanController extends AbstractBaseController {
return CommonResponseUtil2.success(contingencyPlanService.recordListByPage(page, planId, planName, classifyId, startTimeLeft, startTimeRight, executionType, planPattern));
}
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "第一次查看预案记录")
@RequestMapping(value = "/frist/getRecord/{batchNo}", method = RequestMethod.GET)
public ResponseModel firstGetRecord( @PathVariable(value = "batchNo") String batchNo) {
......@@ -236,6 +240,7 @@ public class ContingencyPlanController extends AbstractBaseController {
return CommonResponseUtil2.success(map);
}
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "查看预案记录列表")
@RequestMapping(value = "/getRecordList/{batchNo}", method = RequestMethod.GET)
public ResponseModel getRecordList( @PathVariable(value = "batchNo") String batchNo) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment