package com.goldenwater.slgc.controller.proxy;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.goldenwater.common.core.controller.BaseController;
import com.goldenwater.common.core.domain.AjaxResult;
import com.goldenwater.common.core.page.TableDataInfo;
import com.goldenwater.slgc.domain.AttResBase;
import com.goldenwater.slgc.service.ReservoirService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;

@Tag(name = "32. 防洪工程数据库")
@RestController
@RequestMapping("/slgc/fhgc")
public class FhgcController extends BaseController {

    @Autowired
    private ReservoirService reservoirService;

    @Operation(summary = "查询防洪工程水库数据")
    @GetMapping("/list")
    public TableDataInfo list(AttResBase attResBase) {
        startPage();
        List<AttResBase> list = reservoirService.selectAttResBaseList(attResBase);
        return getDataTable(list);
    }
}
