package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.pojo.db_power_fk_inf.PowerFkInf;
|
import com.whyc.service.PowerFkInfService;
|
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 java.util.List;
|
|
@RestController
|
@Api(tags = "电源管理")
|
@RequestMapping("powerInf")
|
public class PowerFkInfController {
|
@Autowired
|
private PowerFkInfService service;
|
|
@ApiOperation(value = "查询所有电源信息和实时数据")
|
@GetMapping("getPowerInfRt")
|
public Response getPowerInfRt(){
|
List list= service.getPowerInfRt();
|
return new Response().setII(1,list!=null,list,"");
|
}
|
}
|