Commit c92cfa72 authored by maoying's avatar maoying

预案接口添加验证权限

parent 1afe21cd
...@@ -175,6 +175,7 @@ public class ContingencyPlanController extends AbstractBaseController { ...@@ -175,6 +175,7 @@ public class ContingencyPlanController extends AbstractBaseController {
} }
} }
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "启动") @ApiOperation(value = "启动")
@RequestMapping(value = "/start", method = RequestMethod.POST) @RequestMapping(value = "/start", method = RequestMethod.POST)
public ResponseModel start(@RequestBody ContingencyPlanParamVo vo) { public ResponseModel start(@RequestBody ContingencyPlanParamVo vo) {
...@@ -196,6 +197,7 @@ public class ContingencyPlanController extends AbstractBaseController { ...@@ -196,6 +197,7 @@ public class ContingencyPlanController extends AbstractBaseController {
return CommonResponseUtil2.success(result); return CommonResponseUtil2.success(result);
} }
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "装备确景") @ApiOperation(value = "装备确景")
@RequestMapping(value = "/scene", method = RequestMethod.GET) @RequestMapping(value = "/scene", method = RequestMethod.GET)
public ResponseModel scene(@ApiParam(value = "装备Id", required = true) String equipmentId, public ResponseModel scene(@ApiParam(value = "装备Id", required = true) String equipmentId,
...@@ -208,6 +210,7 @@ public class ContingencyPlanController extends AbstractBaseController { ...@@ -208,6 +210,7 @@ public class ContingencyPlanController extends AbstractBaseController {
} }
} }
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "预案启动记录分页列表") @ApiOperation(value = "预案启动记录分页列表")
@RequestMapping(value = "/record/page", method = RequestMethod.GET) @RequestMapping(value = "/record/page", method = RequestMethod.GET)
public ResponseModel recordList( public ResponseModel recordList(
...@@ -229,6 +232,7 @@ public class ContingencyPlanController extends AbstractBaseController { ...@@ -229,6 +232,7 @@ public class ContingencyPlanController extends AbstractBaseController {
return CommonResponseUtil2.success(contingencyPlanService.recordListByPage(page, planId, planName, classifyId, startTimeLeft, startTimeRight, executionType, planPattern)); return CommonResponseUtil2.success(contingencyPlanService.recordListByPage(page, planId, planName, classifyId, startTimeLeft, startTimeRight, executionType, planPattern));
} }
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "第一次查看预案记录") @ApiOperation(value = "第一次查看预案记录")
@RequestMapping(value = "/frist/getRecord/{batchNo}", method = RequestMethod.GET) @RequestMapping(value = "/frist/getRecord/{batchNo}", method = RequestMethod.GET)
public ResponseModel firstGetRecord( @PathVariable(value = "batchNo") String batchNo) { public ResponseModel firstGetRecord( @PathVariable(value = "batchNo") String batchNo) {
...@@ -236,6 +240,7 @@ public class ContingencyPlanController extends AbstractBaseController { ...@@ -236,6 +240,7 @@ public class ContingencyPlanController extends AbstractBaseController {
return CommonResponseUtil2.success(map); return CommonResponseUtil2.success(map);
} }
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "查看预案记录列表") @ApiOperation(value = "查看预案记录列表")
@RequestMapping(value = "/getRecordList/{batchNo}", method = RequestMethod.GET) @RequestMapping(value = "/getRecordList/{batchNo}", method = RequestMethod.GET)
public ResponseModel getRecordList( @PathVariable(value = "batchNo") String batchNo) { 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