| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.TestPlan; |
| | | import com.whyc.service.TestPlanService; |
| | |
| | | public Response<IPage<TestPlan>> getAll(@RequestParam int pageNum, @RequestParam int pageSize){ |
| | | return service.getAll(pageNum,pageSize); |
| | | } |
| | | @PostMapping("search") |
| | | @ApiOperation(value = "查询分页-根据筛选条件") |
| | | public Response<IPage<TestPlan>> getPageByCondition(@RequestParam int pageNum, @RequestParam int pageSize, @RequestBody TestPlan testPlan){ |
| | | return service.getPageByCondition(pageNum,pageSize,testPlan); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @GetMapping |
| | | @ApiOperation(value = "查看详情") |
| | | public Response getOneByPlanId(@RequestParam Integer planId){ |
| | | return service.getOneByPlanId(planId); |
| | | public Response getOne(@RequestParam Integer num){ |
| | | return service.getOne(num); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | @PutMapping("startPlan") |
| | | @ApiOperation(value = "启动计划") |
| | | public Response startPlan(@RequestParam int planId){ |
| | | return service.startPlan(planId); |
| | | public Response startPlan(@RequestParam int num){ |
| | | return service.startPlan(num); |
| | | } |
| | | |
| | | @PutMapping("delete") |
| | | @ApiOperation(value = "删除作废") |
| | | public Response deletePlan(@RequestParam int num){ |
| | | return service.deletePlan(num); |
| | | } |
| | | @PutMapping("stop") |
| | | @ApiOperation(value = "停止计划") |
| | | public Response stopPlan(@RequestParam int num){ |
| | | return service.stopPlan(num); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |