package com.huimv.env.admin.controller;


import com.huimv.env.admin.common.utils.Result;
import com.huimv.env.admin.service.IPortChangeDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-05-09
 */
@RestController
@RequestMapping("/port-change-data")
@CrossOrigin
public class PortChangeDataController {
    @Autowired
    private IPortChangeDataService dataService;

    @RequestMapping("/listData")
    public Result listDate(@RequestBody Map<String,String> paramsMap) {
        return dataService.listData(paramsMap);
    }
}
