whyclxw
2024-12-04 e184cfdfa5d24da461c70d6fdcaacffd59649c72
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
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,"");
    }
}