//package com.yuchen.saas.park.service.controller.environment.irrigate;
//
//
//import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
//import com.yuchen.saas.park.api.dto.irrigate.GreenPlantsPageDTO;
//import com.yuchen.saas.park.api.dto.irrigate.GreenPlantsSaveDTO;
//import com.yuchen.saas.park.api.dto.irrigate.GreenPlantsUpdateDTO;
//import com.yuchen.saas.park.api.vo.irrigate.GreenPlantsPageVO;
//import com.yuchen.saas.park.service.service.irrigate.IPmgBatIrrigateGreenPlantsService;
//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-09
// */
//@Slf4j
//@RestController
//@RequiredArgsConstructor
//@RequestMapping("/pmgBatIrrigateGreenPlants")
//public class PmgBatIrrigateGreenPlantsController {
//
//    private final IPmgBatIrrigateGreenPlantsService baseService;
//
//    @ApiOperationSupport(order = 1)
//    @ApiOperation(value = "分页")
//    @GetMapping("/page")
//    public R<NestPage<GreenPlantsPageVO>> getPage(GreenPlantsPageDTO dto) {
//        return R.data(baseService.getPage(dto));
//    }
//
//    @ApiOperationSupport(order = 2)
//    @ApiOperation(value = "详情")
//    @GetMapping("/info/{id}")
//    public R<GreenPlantsPageVO> info(@PathVariable Long id) {
//        return R.data(baseService.info(id));
//    }
//
//    @ApiOperationSupport(order = 3)
//    @ApiOperation(value = "保存")
//    @PostMapping("/save")
//    public R<Boolean> save(@RequestBody @Valid GreenPlantsSaveDTO dto) {
//        baseService.save(dto);
//        return R.data(Boolean.TRUE);
//    }
//
//    @ApiOperationSupport(order = 4)
//    @ApiOperation(value = "编辑")
//    @PostMapping("/update")
//    public R<Boolean> update(@RequestBody @Valid GreenPlantsUpdateDTO 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<GreenPlantsPageVO>> getList(@RequestParam Long parkId) {
//        return R.data(baseService.getList(parkId));
//    }
//}
