package com.fjhx.feign;

import com.fjhx.constants.ClientConstant;
import org.springblade.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;
import java.util.Set;

/**
 * File Feign接口类
 */
@FeignClient(value = "blade-ex")
public interface IRegionClient {

    String GET_CHINESE_NAME_BY_ID = ClientConstant.API_PREFIX + "/getChineseNameById";

    /**
     * 根据城市id获取城市名称
     *
     * @param regionSet 城市id集合
     */
    @PostMapping(GET_CHINESE_NAME_BY_ID)
    R<Map<String, String>> getChineseNameById(@RequestBody Set<String> regionSet);

}
