package cn.qinys.platform.openfeign;

import cn.qinys.platform.admin.req.GeoAddressReq;
import cn.qinys.platform.base.constants.ServiceConstants;
import cn.qinys.platform.base.response.Result;
import cn.qinys.platform.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lie tan
 * @description
 * @date 2026-05-24 14:12
 **/
@Component
@FeignClient(name = ServiceConstants.UPMS_SERVICE,
        configuration = FeignConfiguration.class)
public interface UpmsFeignClient {


    /**
     * 根据经纬度获取地址信息
     *
     * @return 无
     */
    @PostMapping("/upms/gaodekey/address")
    Result<String> getAddressByAltitudeAndLongitude(@RequestBody GeoAddressReq req);
}