RemoteWarehouseService.java
1.14 KB
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.domain.Warehouse;
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;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
@FeignClient(contextId = "remoteWarehouseService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteWarehouseService{
/**
* 通过code查询货主信息
*
* @param code 编码
* @return 结果
*/
@GetMapping("/company/selectCompanyByCurrentUserId")
List<Company> selectCompanyByCurrentUserId(@RequestParam("userId") String userId, @RequestParam("warehouseCode") String warehouseCode);
@GetMapping("/warehouse/getAll")
List<Warehouse> list();
}