From 788fd95ad4fd8d1a1f81c59628c24cb8355783da Mon Sep 17 00:00:00 2001
From: whycxzp <perryhsu@163.com>
Date: 星期一, 01 三月 2021 17:31:14 +0800
Subject: [PATCH] update

---
 src/main/java/com/whyc/controller/AFERectifierController.java |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/whyc/controller/AFERectifierController.java b/src/main/java/com/whyc/controller/AFERectifierController.java
index def8c6f..00ab455 100644
--- a/src/main/java/com/whyc/controller/AFERectifierController.java
+++ b/src/main/java/com/whyc/controller/AFERectifierController.java
@@ -1,7 +1,15 @@
 package com.whyc.controller;
 
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.whyc.dto.Response;
+import com.whyc.pojo.AFERectifierState;
+import com.whyc.service.AFERectifierService;
 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;
 
 @RestController
@@ -9,5 +17,19 @@
 @Api(tags = "afe鍙橀鍣�-鏁存祦鍣ㄧ殑鏁版嵁淇℃伅")
 public class AFERectifierController {
 
+    @Autowired
+    AFERectifierService service;
+
+    @GetMapping("all")
+    @ApiOperation(value = "鑾峰彇鎵�鏈夋暟鎹俊鎭�")
+    public Response<IPage<AFERectifierState>> getAll(@RequestParam int pageNum, int pageSize){
+        return service.getAll(pageNum,pageSize);
+    }
+
+    @GetMapping("infoByDevId")
+    @ApiOperation(value = "鑾峰彇鍗曚釜鏁版嵁淇℃伅:鏍规嵁璁惧id")
+    public Response<AFERectifierState> getInfoByDevId(@RequestParam int devId){
+        return service.getInfoByDevId(devId);
+    }
 
 }

--
Gitblit v1.9.1