package com.xunmei.system.api;

import com.xunmei.common.core.constant.SecurityConstants;
import com.xunmei.common.core.constant.ServiceNameConstants;
import com.xunmei.common.core.domain.R;
import com.xunmei.system.api.factory.RemoteSyncOrgAndUserFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 日志服务
 * 
 * @author xunmei
 */
@FeignClient(contextId = "remoteSyncOrgAndUserService", value = ServiceNameConstants.SYNC_SERVICE, fallbackFactory = RemoteSyncOrgAndUserFactory.class)
public interface RemoteSyncOrgAndUserService
{
    /**
     * 同步机构和用户
     * @param source
     * @return
     * @throws Exception
     */
    @GetMapping("/fjnx/organduser")
    public R<Boolean> syncOrgAndUser(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
