lxw
2023-08-15 160e150009b51a39fa95d9462c3798ba28d51a09
src/main/java/com/whyc/controller/MacController.java
@@ -5,13 +5,11 @@
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 javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
@RestController
@RequestMapping("mac")
@@ -27,8 +25,14 @@
    }
    @GetMapping("getMac")
    @ApiOperation(value = "获取mac")
    @ApiOperation(value = "获取mac并导出")
    public void getMac(HttpServletRequest req, HttpServletResponse resp, @RequestParam int macNum) {
        service.getMac(req, resp, macNum);
    }
    @PostMapping("getMacHis")
    @ApiOperation(value = "从历史导出CSV")
    public void getMacHis(HttpServletRequest req, HttpServletResponse resp, @RequestBody List<String> macList) {
        service.getMacHis(req, resp, macList);
    }
}