//package com.yuchen.saas.park.service.controller.environment.irrigate;
//
//import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
//import com.yuchen.saas.park.api.dto.irrigate.IrrigateAreaPageDTO;
//import com.yuchen.saas.park.api.dto.irrigate.IrrigateAreaSaveDTO;
//import com.yuchen.saas.park.api.dto.irrigate.IrrigateAreaUpdateDTO;
//import com.yuchen.saas.park.api.vo.irrigate.IrrigateAreaPageVO;
//import com.yuchen.saas.park.service.service.irrigate.IPmgBatIrrigateAreaService;
//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-04-16
// */
//@Slf4j
//@RestController
//@RequiredArgsConstructor
//@RequestMapping("/irrigate/area")
//public class PmgBatIrrigateAreaController {
//
//    private final IPmgBatIrrigateAreaService baseService;
//
//    @ApiOperationSupport(order = 1)
//    @ApiOperation(value = "分页")
//    @GetMapping("/page")
//    public R<NestPage<IrrigateAreaPageVO>> getPage(IrrigateAreaPageDTO dto) {
//        return R.data(baseService.getPage(dto));
//    }
//
//    @ApiOperationSupport(order = 2)
//    @ApiOperation(value = "详情")
//    @GetMapping("/info/{id}")
//    public R<IrrigateAreaPageVO> info(@PathVariable Long id) {
//        return R.data(baseService.info(id));
//    }
//
//    @ApiOperationSupport(order = 3)
//    @ApiOperation(value = "保存")
//    @PostMapping("/save")
//    public R<Boolean> save(@RequestBody @Valid IrrigateAreaSaveDTO dto) {
//        baseService.save(dto);
//        return R.data(Boolean.TRUE);
//    }
//
//    @ApiOperationSupport(order = 4)
//    @ApiOperation(value = "编辑")
//    @PostMapping("/update")
//    public R<Boolean> update(@RequestBody @Valid IrrigateAreaUpdateDTO dto) {
//        baseService.update(dto);
//        return R.data(Boolean.TRUE);
//    }
//
//    @ApiOperationSupport(order = 5)
//    @ApiOperation(value = "删除")
//    @DeleteMapping("/delete/{id}")
//    public R<Boolean> update(@PathVariable String id) {
//        return R.data(baseService.deleteLogic(Func.toLongList(id)));
//    }
//
//    @ApiOperationSupport(order = 6)
//    @ApiOperation(value = "列表")
//    @GetMapping("/list")
//    public R<List<IrrigateAreaPageVO>> getList(@RequestParam Long parkId) {
//        return R.data(baseService.getList(parkId));
//    }
//}
