| 123456789101112131415161718192021222324252627282930313233343536 |
- package com.template.api;
- import com.template.model.pojo.SmartMeter;
- import com.template.model.pojo.SmartMeterDetail;
- import com.template.model.result.CommonResult;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import org.springframework.validation.BindingResult;
- import org.springframework.validation.annotation.Validated;
- import org.springframework.web.bind.annotation.*;
- /**
- * @Author: binguo
- * @Date: 2023/3/30 星期四 17:28
- * @Description: com.video.api
- * @Version: 1.0
- */
- @RequestMapping("/api/smartMeterDetail")
- @Api(tags = {"SmartMeterDetailControllerAPI"}, value = "水电表能耗明细")
- public interface SmartMeterDetailControllerAPI {
- @PostMapping(value = "/insertSmartMeterDetail")
- @ApiOperation(value = "添加水电表能耗明细", notes = "添加水电表能耗明细数据", httpMethod = "POST")
- CommonResult insertSmartMeterDetail(@Validated @RequestBody SmartMeterDetail smartApply, BindingResult bindingResult);
- @PostMapping(value = "/updateSmartMeterDetailById")
- @ApiOperation(value = "编辑水电表能耗明细数据", notes = "编辑水电表能耗明细数据", httpMethod = "POST")
- CommonResult updateSmartMeterDetailById(@Validated @RequestBody SmartMeterDetail ra, BindingResult bindingResult);
- @GetMapping(value = "/queryPageSmartMeterDetail")
- @ApiOperation(value = "水电表能耗明细分页数据", notes = "水电表能耗明细分页数据", httpMethod = "GET")
- CommonResult queryPageSmartMeterDetails(@RequestParam int currentPage, @RequestParam int pageCount, String name);
- @GetMapping(value = "/deleteSmartMeterDetailById")
- @ApiOperation(value = "根据ID删除指定水电表能耗明细", notes = "根据ID删除指定水电表能耗明细", httpMethod = "GET")
- CommonResult deleteSmartMeterDetailById(@RequestParam int id);
- }
|