package com.goldenwater.slgc.controller.proxy;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.goldenwater.common.core.controller.BaseController;
import com.goldenwater.common.core.domain.AjaxResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;

@Tag(name = "20. 水功能区")
@RestController
@RequestMapping("/slgc/waterfunc")
public class WaterFuncController extends BaseController {

    private static final String API = "http://10.8.4.135:8083/szybh/sgnq";

    @Operation(summary = "20.01 查询水功能区列表")
    @GetMapping("/list")
    public AjaxResult list() {
        return success(ProxyHelper.fetchJson(API + "/getSgnqList"));
    }
}
