package com.yifu.cloud.plus.v1.provider.feign;

import com.yifu.cloud.plus.v1.provider.entity.Provider;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author fxj
 * @Date 2022-05-14
 */
//@FeignClient(contextId="remoteProviderService",value = ServiceNameConstants.PROVIDER_SERVICE)
public interface RemoteProviderService {
	@PostMapping("/provider/inner/save")
	R<Boolean> testSeata(@RequestBody Provider provider, @RequestHeader(SecurityConstants.FROM) String from);
}
