/*
 * Author: wangjian
 * 生成controller
 */
package com.tofly.watermeter.controller;

/**
 * 阀门与水表关联信息
 *
 * @author admin
 * @date Thu Apr 08 00:00:00 CST 2021
 */
/*@RestController
@AllArgsConstructor
@RequestMapping("/valvelinktable")
@Api(tags="阀门与水表关联信息接口")*/
public class ValvelinktableController {

    /*private final  ValvelinktableService valvelinktableService;

    *//**
    * 分页查询
    * @param page 分页对象
    * @param valvelinktable 阀门与水表关联信息
    * @return
    *//*
    @GetMapping("/page" )
    @ApiOperation(value = "分页查询")
    public ResultRespone getValvelinktablePage(Page page, @ModelAttribute Valvelinktable valvelinktable) {
      return ResultRespone.success(valvelinktableService.page(page, Wrappers.query(valvelinktable)));
    }


    *//**
     * 通过id查询阀门与水表关联信息
     * @param id id
     * @return ResultRespone
     *//*
    @GetMapping("/{id}" )
    @ApiOperation(value = "通过ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", required = true, dataType = "Long")
    })
    public ResultRespone getById(@PathVariable("id" ) Long id) {
      return ResultRespone.success(valvelinktableService.getById(id));
    }

    *//**
     * 新增阀门与水表关联信息
     * @param valvelinktable 阀门与水表关联信息
     * @return ResultRespone
     *//*
    //="新增阀门与水表关联信息" )
    @ApiOperation(value = "新增阀门与水表关联信息")
    @PostMapping
    public ResultRespone save(@RequestBody Valvelinktable valvelinktable) {
      return ResultRespone.success(valvelinktableService.save(valvelinktable));
    }

    *//**
     * 修改阀门与水表关联信息
     * @param valvelinktable 阀门与水表关联信息
     * @return ResultRespone
     *//*
    //="修改阀门与水表关联信息" )
    @ApiOperation(value = "修改阀门与水表关联信息")
    @PutMapping
    public ResultRespone updateById(@RequestBody Valvelinktable valvelinktable) {
      return ResultRespone.success(valvelinktableService.updateById(valvelinktable));
    }

    *//**
     * 通过id删除阀门与水表关联信息
     * @param id id
     * @return ResultRespone
     *//*
    //="通过id删除阀门与水表关联信息" )
    @ApiOperation(value = "通过ID删除阀门与水表关联信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", required = true, dataType = "Long")
    })
    @DeleteMapping("/{id}" )
    public ResultRespone removeById(@PathVariable Long id) {
      return ResultRespone.success(valvelinktableService.removeById(id));
    }

    *//**
     * 通过id批量删除阀门与水表关联信息
     * @param ids id
     * @return ResultRespone
     *//*
    //="通过id批量删除阀门与水表关联信息" )
    @ApiOperation(value = "通过ID批量删除阀门与水表关联信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "批量删除，多个id以逗号隔开", required = true, dataType = "String")
    })
    @DeleteMapping("/deleteByIds" )
    public ResultRespone removeById(String ids) {
        return ResultRespone.success(valvelinktableService.removeByIds(Arrays.asList(ids.split(","))));
    }*/
}
