package com.sptg.permissions.api.feigns;

import com.sptg.permissions.api.entity.WeiXinConf;
import com.sptg.permissions.api.feigns.fallback.WeiXinConfFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * title: WeiXinConfFeign
 * package: com.sptg.permissions.api.feigns
 * description:微信配置参数对外服务接口
 *
 *
 *
 */
@FeignClient(value = "smart-house-permissions",fallbackFactory = WeiXinConfFeignFallbackFactory.class)
public interface WeiXinConfFeign {

//    /**
//     * 功能描述: 根据id查询微信配置参数
//     * @param  orgId
//     * @return WeiXinConf
//     *
//     *
//     */
//    @PostMapping(value = "/weixin/selectEntityById")
//    WeiXinConf selectEntityById(@RequestBody Long orgId);

    /**
     * 功能描述: 根据id查询微信配置参数
     * @param  weiXinConf
     * @return WeiXinConf
     *
     *
     */
    @PostMapping(value = "/weixin/selectEntityByOrgIdAndName")
    WeiXinConf selectEntityByOrgIdAndName(@RequestBody WeiXinConf weiXinConf);

}
