package com.gkhy.fourierSpecialGasMonitor.controller; import com.gkhy.fourierSpecialGasMonitor.annotation.RepeatedClick; import com.gkhy.fourierSpecialGasMonitor.commons.domain.Result; import com.gkhy.fourierSpecialGasMonitor.entity.req.UpdateGasThresholdReqDTO; import com.gkhy.fourierSpecialGasMonitor.entity.req.UpdateRegionReqDTO; import com.gkhy.fourierSpecialGasMonitor.service.GasThresholdService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @author Mr.huang * @decription * @date 2023/8/9 14:22 */ @RestController @RequestMapping("/gasThreshold") public class GasThresholdController { @Autowired private GasThresholdService gasThresholdService; @PostMapping("/list") public Result gasThresholdList(){ Result result = gasThresholdService.gasThresholdList(); return result; } @PostMapping("/update") @RepeatedClick public Result updateGasThreshold(@RequestBody UpdateGasThresholdReqDTO reqDto){ Result result = gasThresholdService.updateGasThreshold(reqDto); return result; } }