package com.ruoyi.monitorInterface.inserctpests.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.monitorInterface.inserctpests.service.PlantDiseasesAndInsectPestsService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/plantDiseasesAndInsectPestsMessageReceiver")
public class PlantDiseasesAndInsectPestsController {

    @Resource
    private PlantDiseasesAndInsectPestsService PlantDiseasesAndInsectPestsService;

    /**
     * 病虫害传感器上报数据
     * */
    @GetMapping("/plantDiseasesAndInsectPestsMessageReceiver/{deviceNumber}")
    public AjaxResult plantDiseasesAndInsectPestsMessageReceiver(@PathVariable("deviceNumber") String deviceNumber){
        return PlantDiseasesAndInsectPestsService.plantDiseasesAndInsectPestsMessageReceiver(deviceNumber);
    }

}
