package com.sunda.spmsweb.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(url = "${feign.client.url}", name = "url")
public interface IFeignService {

    /**
     * 实时远程向 SAP 请求交货单表头、供应商、交货单行项目、包装单号、箱码、箱码明细等信息
     * @param json
     * @return
     */
    @RequestMapping(value = "/sunda_pos", method = RequestMethod.POST, consumes = "application/json")
    String sendRestToSap(JSONObject json);

}
