whyclxw
2021-12-15 13d3cb6d6d74c3a39bb613debda9b4c4b2821e3e
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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.service.Fbs9100sDfuStateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
 
@RestController
@Api(tags = "作业管理-BTS设备升级")
@RequestMapping("Fbs9100s_dfu_stateAction")
public class Fbs9100sDfuStateController {
 
    @Autowired
    private Fbs9100sDfuStateService service;
 
 
    @ApiOperation("查询正在升级的设备")
    @GetMapping("/searchAll")
    private Response searchAll(){
        return  service.searchAll();
    }
 
    @ApiOperation("添加")
    @GetMapping("/addPro")
    private Response addPro(@RequestParam String stationName,@RequestParam int num){
        return  service.addPro(stationName,num);
    }
}