RemoteCompanyService.java
873 Bytes
package com.huaheng.system.api;
import com.huaheng.common.core.constant.ServiceNameConstants;
import com.huaheng.common.core.domain.R;
import com.huaheng.system.api.domain.Company;
import com.huaheng.system.api.factory.RemoteUserFallbackFactory;
import com.huaheng.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(contextId = "remoteCompanyService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteCompanyService {
/**
* 通过code查询货主信息
*
* @param code 编码
* @return 结果
*/
@GetMapping(value = "/company/{code}")
Company getCompanyCode(@PathVariable("code") String code);
}