package com.njcn.system.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.system.api.fallback.DictTreeFeignClientFallbackFactory;
import com.njcn.system.pojo.po.SysDicTreePO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xuyang
 */
@FeignClient(value = ServerInfo.SYSTEM, path = "/dictTree", fallbackFactory = DictTreeFeignClientFallbackFactory.class, contextId = "dictTree")
public interface DictTreeFeignClient {

    @PostMapping("/queryById")
    HttpResult<SysDicTreePO> queryById(@RequestParam("id") String id);
}
