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 com.goldenwater.slgc.config.ApiProperties;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;

@Tag(name = "31. 水源地站点代理")
@RestController
@RequestMapping("/slgc/syq")
public class SyqController extends BaseController {

    private final ApiProperties apiProperties;

    public SyqController(ApiProperties apiProperties) {
        this.apiProperties = apiProperties;
    }

    @Operation(summary = "31.01 获取水源地站点列表")
    @GetMapping("/szy/station")
    public AjaxResult station() {
        return success(ProxyHelper.fetchJson(apiProperties.getSyqStation() + "/zhxx/syq/szy/station"));
    }
}
