whycxzp
2022-05-13 cc9f3e54d119db2320b2653643e03617dce9d8fc
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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.PwrappAcdcinf;
import com.whyc.service.PwrappAcdcinfService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@Api(tags = "在线监测-实时监控")
@RestController
@RequestMapping("PowerConfigAction")
public class PwrappAcdcinfController {
    @Autowired
    private PwrappAcdcinfService service;
 
    @ApiOperation(value = "更新电源acdc设备设置",notes = "PowerConfigAction_power_updatePowerACDCConfigById")
    @PostMapping("updatePowerACDCConfigById")
    public Response updatePowerACDCConfigById(@RequestBody PwrappAcdcinf acdcinf){
        return service.updatePowerACDCConfigById(acdcinf);
    }
 
    @ApiOperation(value = "读取电源acdc设备设置",notes = "PowerConfigAction_power_getPowerACDCConfigById")
    @GetMapping("getPowerACDCConfigById")
    public Response getPowerACDCConfigById(@RequestParam int powerDeviceId){
        return  service.getPowerACDCConfigById(powerDeviceId);
    }
 
}