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

/**
 * 监测站信息采集数据表：TF_YWPN_STATION_W
 *
 * @author admin
 * @date Wed Mar 10 00:00:00 CST 2021
 */
//@RestController
//@AllArgsConstructor
//@RequestMapping("/station")
//@Api(tags="监测站信息采集数据表：TF_YWPN_STATION_W接口")
public class StationController {

//    private final  StationService stationService;
//
//    /**
//    * 分页查询
//    * @param page 分页对象
//    * @param station 监测站信息采集数据表：TF_YWPN_STATION_W
//    * @return
//    */
//    @GetMapping("/page" )
//    @ApiOperation(value = "分页查询")
//    public ResultRespone getStationPage(Page page, @ModelAttribute Station station) {
//      return ResultRespone.success(stationService.page(page, Wrappers.query(station)));
//    }
//
//
//    /**
//     * 通过id查询监测站信息采集数据表：TF_YWPN_STATION_W
//     * @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(stationService.getById(id));
//    }
//
//    /**
//     * 新增监测站信息采集数据表：TF_YWPN_STATION_W
//     * @param station 监测站信息采集数据表：TF_YWPN_STATION_W
//     * @return ResultRespone
//     */
//    //(title="新增监测站信息采集数据表：TF_YWPN_STATION_W" )
//    @ApiOperation(value = "新增监测站信息采集数据表：TF_YWPN_STATION_W")
//    @PostMapping
//    public ResultRespone save(@RequestBody Station station) {
//      return ResultRespone.success(stationService.save(station));
//    }
//
//    /**
//     * 修改监测站信息采集数据表：TF_YWPN_STATION_W
//     * @param station 监测站信息采集数据表：TF_YWPN_STATION_W
//     * @return ResultRespone
//     */
//    //(title="修改监测站信息采集数据表：TF_YWPN_STATION_W" )
//    @ApiOperation(value = "修改监测站信息采集数据表：TF_YWPN_STATION_W")
//    @PutMapping
//    public ResultRespone updateById(@RequestBody Station station) {
//      return ResultRespone.success(stationService.updateById(station));
//    }
//
//    /**
//     * 通过id删除监测站信息采集数据表：TF_YWPN_STATION_W
//     * @param id id
//     * @return ResultRespone
//     */
//    //(title="通过id删除监测站信息采集数据表：TF_YWPN_STATION_W" )
//    @ApiOperation(value = "通过ID删除监测站信息采集数据表：TF_YWPN_STATION_W")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "id", value = "ID", required = true, dataType = "Long")
//    })
//    @DeleteMapping("/{id}" )
//    public ResultRespone removeById(@PathVariable Long id) {
//      return ResultRespone.success(stationService.removeById(id));
//    }
//
//    /**
//     * 通过id批量删除监测站信息采集数据表：TF_YWPN_STATION_W
//     * @param ids id
//     * @return ResultRespone
//     */
//    //(title="通过id批量删除监测站信息采集数据表：TF_YWPN_STATION_W" )
//    @ApiOperation(value = "通过ID批量删除监测站信息采集数据表：TF_YWPN_STATION_W")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "ids", value = "批量删除，多个id以逗号隔开", required = true, dataType = "String")
//    })
//    @DeleteMapping("/deleteByIds" )
//    public ResultRespone removeById(String ids) {
//        return ResultRespone.success(stationService.removeByIds(Arrays.asList(ids.split(","))));
//    }
}
