| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | 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; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | return service.getInfoByDevId(devId); |
| | | } |
| | | |
| | | @PutMapping("updateState") |
| | | @ApiOperation(value = "更新状态-演示使用") |
| | | public Response updateState(@RequestParam int devId,@RequestParam int rectifierPowerState){ |
| | | return service.updatePowerState(devId,rectifierPowerState); |
| | | } |
| | | |
| | | @GetMapping("field") |
| | | @ApiOperation(value = "查询告警阈值字段") |
| | | public Response<Map<String, List>> getField(){ |