//package com.yuchen.saas.park.service.controller.environment.irrigate;
//
//import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
//import com.yuchen.saas.park.api.dto.irrigate.IrrigatePointLocationPageDTO;
//import com.yuchen.saas.park.api.dto.irrigate.IrrigatePointLocationSaveDTO;
//import com.yuchen.saas.park.api.dto.irrigate.IrrigatePointLocationUpdateDTO;
//import com.yuchen.saas.park.api.vo.irrigate.IrrigatePointLocationPageVO;
//import com.yuchen.saas.park.service.service.irrigate.IPmgBatIrrigatePointLocationService;
//import io.swagger.annotations.ApiOperation;
//import lombok.RequiredArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.nest.springwrap.core.mp.support.NestPage;
//import org.nest.springwrap.core.tool.api.R;
//import org.nest.springwrap.core.tool.utils.Func;
//import org.springframework.web.bind.annotation.*;
//
//import javax.validation.Valid;
//import java.util.List;
//
///**
// * 浇灌点位信息表
// * <p>
// * 浇灌点位信息表 前端控制器
// * </p>
// *
// * @author linyb
// * @since 2024-05-20
// */
//@Slf4j
//@RestController
//@RequiredArgsConstructor
//@RequestMapping("/irrigate/point/location")
//public class PmgBatIrrigatePointLocationController {
//
//    private final IPmgBatIrrigatePointLocationService baseService;
//
//    @ApiOperationSupport(order = 1)
//    @ApiOperation(value = "分页")
//    @GetMapping("/page")
//    public R<NestPage<IrrigatePointLocationPageVO>> getPage(IrrigatePointLocationPageDTO dto) {
//        return R.data(baseService.getPage(dto));
//    }
//
//    @ApiOperationSupport(order = 2)
//    @ApiOperation(value = "详情")
//    @GetMapping("/info/{id}")
//    public R<IrrigatePointLocationPageVO> info(@PathVariable Long id) {
//        return R.data(baseService.info(id));
//    }
//
//    @ApiOperationSupport(order = 3)
//    @ApiOperation(value = "保存")
//    @PostMapping("/save")
//    public R<Boolean> save(@RequestBody @Valid IrrigatePointLocationSaveDTO dto) {
//        return R.data(baseService.save(dto));
//    }
//
//    @ApiOperationSupport(order = 4)
//    @ApiOperation(value = "编辑")
//    @PostMapping("/update")
//    public R<Boolean> update(@RequestBody @Valid IrrigatePointLocationUpdateDTO dto) {
//        return R.data(baseService.update(dto));
//    }
//
//    @ApiOperationSupport(order = 5)
//    @ApiOperation(value = "删除")
//    @DeleteMapping("/delete/{id}")
//    public R<Boolean> delete(@PathVariable String id) {
//        return R.data(baseService.deleteLogic(Func.toLongList(id)));
//    }
//
//    @ApiOperationSupport(order = 6)
//    @ApiOperation(value = "列表")
//    @GetMapping("/list")
//    public R<List<IrrigatePointLocationPageVO>> getList(@RequestParam Long parkId) {
//        return R.data(baseService.getList(parkId));
//    }
//}
