whycxzp
2025-03-30 87ce3b2705c814523a199572c77402b96801e794
src/main/java/com/whyc/controller/InterfaceFireRobotController.java
@@ -1,6 +1,7 @@
package com.whyc.controller;
import com.github.pagehelper.PageInfo;
import com.whyc.dto.EnvironmentThreshold;
import com.whyc.dto.InspectionRecord;
import com.whyc.dto.Response;
import com.whyc.service.FireRobotService;
@@ -44,6 +45,43 @@
        return service.specifyTask(interval,progress,direction);
    }
    /**
     * 巡检间隔接口
     * 请求参数   参数1   hour(float):巡检间隔   是   2
     *    参数示例
     * http://192.168.10.45:8085/InspectionIntervals?hour=2
     * 返回参数   参数1
     *    参数示例
     * 巡检间隔已设置: 2.0 h/次。
     *
     */
    @PostMapping("setInspectionInterval")
    public Response setInspectionInterval(@RequestParam float hour){
        return service.setInspectionInterval(hour);
    }
    /**
     * 巡检间隔接口
     * 请求参数   参数1   hour(float):巡检间隔   是   2
     *    参数示例
     * http://192.168.10.45:8085/InspectionIntervals?hour=2
     * 返回参数   参数1
     *    参数示例
     * 巡检间隔已设置: 2.0 h/次。
     *
     */
    @PostMapping("setEnvironmentThreshold")
    public Response setEnvironmentThreshold(@RequestBody EnvironmentThreshold threshold){
        return service.setEnvironmentThreshold(threshold);
    }
    @GetMapping("getEnvironmentThreshold")
    public Response getEnvironmentThreshold(){
        return service.getEnvironmentThreshold();
    }
    @ApiOperation("查询分页-巡检记录")
    @GetMapping("getPageOfInspectionRecord")
    public Response<PageInfo<InspectionRecord>> getPageOfInspectionRecord(@RequestParam int pageNum, @RequestParam int pageSize,