SmartMeterDetailControllerAPI.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.template.api;
  2. import com.template.model.pojo.SmartMeter;
  3. import com.template.model.pojo.SmartMeterDetail;
  4. import com.template.model.result.CommonResult;
  5. import io.swagger.annotations.Api;
  6. import io.swagger.annotations.ApiOperation;
  7. import org.springframework.validation.BindingResult;
  8. import org.springframework.validation.annotation.Validated;
  9. import org.springframework.web.bind.annotation.*;
  10. /**
  11. * @Author: binguo
  12. * @Date: 2023/3/30 星期四 17:28
  13. * @Description: com.video.api
  14. * @Version: 1.0
  15. */
  16. @RequestMapping("/api/smartMeterDetail")
  17. @Api(tags = {"SmartMeterDetailControllerAPI"}, value = "水电表能耗明细")
  18. public interface SmartMeterDetailControllerAPI {
  19. @PostMapping(value = "/insertSmartMeterDetail")
  20. @ApiOperation(value = "添加水电表能耗明细", notes = "添加水电表能耗明细数据", httpMethod = "POST")
  21. CommonResult insertSmartMeterDetail(@Validated @RequestBody SmartMeterDetail smartApply, BindingResult bindingResult);
  22. @PostMapping(value = "/updateSmartMeterDetailById")
  23. @ApiOperation(value = "编辑水电表能耗明细数据", notes = "编辑水电表能耗明细数据", httpMethod = "POST")
  24. CommonResult updateSmartMeterDetailById(@Validated @RequestBody SmartMeterDetail ra, BindingResult bindingResult);
  25. @GetMapping(value = "/queryPageSmartMeterDetail")
  26. @ApiOperation(value = "水电表能耗明细分页数据", notes = "水电表能耗明细分页数据", httpMethod = "GET")
  27. CommonResult queryPageSmartMeterDetails(@RequestParam int currentPage, @RequestParam int pageCount, String name);
  28. @GetMapping(value = "/deleteSmartMeterDetailById")
  29. @ApiOperation(value = "根据ID删除指定水电表能耗明细", notes = "根据ID删除指定水电表能耗明细", httpMethod = "GET")
  30. CommonResult deleteSmartMeterDetailById(@RequestParam int id);
  31. }