package com.whyc.controller;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.github.pagehelper.Page;
|
import com.github.pagehelper.PageInfo;
|
import com.whyc.dto.Response;
|
import com.whyc.pojo.AFEInverterControl;
|
import com.whyc.service.AFECtrlService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
@RestController
|
@RequestMapping("afeCtrl")
|
@Api(tags = "afe变频器-控制状态")
|
public class AFECtrlController {
|
|
@Autowired
|
private AFECtrlService service;
|
|
@GetMapping("stateAll")
|
@ApiOperation(value = "获取所有控制状态信息")
|
//public Response<IPage<AFEInverterControl>> stateAll(@RequestParam int pageNum, int pageSize){
|
public Response<Object> stateAll(@RequestParam int pageNum, int pageSize){
|
return service.stateAll(pageNum,pageSize);
|
}
|
|
@GetMapping("stateByDevId")
|
@ApiOperation(value = "查询设备的控制状态信息")
|
public Response<AFEInverterControl> state(@RequestParam int devId){
|
return service.state(devId);
|
}
|
|
}
|