package com.fjhx.feign;

import com.fjhx.service.ExRegionService;
import org.springblade.core.tool.api.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

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

@ApiIgnore
@RestController
public class RegionClient implements IRegionClient{

    @Autowired
    private ExRegionService exRegionService;

    @PostMapping(GET_CHINESE_NAME_BY_ID)
    @Override
    public R<Map<String, String>> getChineseNameById(Set<String> regionSet) {
        return R.success(exRegionService.getChineseNameById(regionSet));
    }

}
