package com.prolog.cs.base.gsp.resource;

import com.prolog.cs.basic.chain.model.cargo.BaseCargoOwnerMst;
import com.prolog.framework.common.message.RestMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "${prolog.service.chain}")
public interface ChainClient {

	/**
	 * 批量查询货主信息
	 *
	 * @return 货主信息
	 */
	@PostMapping("/baseCargoOwnerMst/v1.0/getByIds")
	RestMessage<Map<String, BaseCargoOwnerMst>> getCargoOwnerMstByIds(@RequestBody String[] Ids);
	
		

	/**
	 * 批量查询货主信息
	 *
	 * @return 货主信息
	 */
	@GetMapping("/baseCargoOwnerMst/v1.0/infoById")
	RestMessage<Map<String, Object>> cargoOwnerInfoById(@RequestParam("cargoOwnerId") String cargoOwnerId);

}
