whycxzp
2024-07-23 c33de1c323ecf239706fe79c25044236ebc827a8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.AvoidPlan;
import com.whyc.service.AvoidPlanService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
@RestController
@Api(tags = "作业管理-放电计划管理")
@RequestMapping("Avoid_planAction")
public class AvoidPlanController {
    @Autowired
    private AvoidPlanService service;
 
    @ApiOperation("查询规避时间")
    @GetMapping("/searchAll")
    private Response searchAll(){
        return service.searchAll();
    }
 
    @ApiOperation("添加规避时间")
    @PostMapping("/addPro")
    private Response addPro(@RequestBody List<AvoidPlan> list){
        return service.addPro(list);
    }
 
    @ApiOperation("删除规避时间")
    @PostMapping("/delPro")
    private Response delPro(@RequestBody List<Integer> nums){
        return service.delPro(nums);
    }
}