package com.foreverwin.mesnac.integration.service;

import com.foreverwin.mesnac.integration.dto.*;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

@WebService(targetNamespace="http://service.integration.mesnac.com")
public interface ERPAPIWebService {

    /**
     * 物料清单同步
     *
     * @param bomSyncRequest
     * @return
     */
    @WebMethod(action = "http://service.integration.mesnac.com/bomSync")
    WebServiceResponse bomSync(@WebParam(name = "bomSyncRequest") BomSyncRequest bomSyncRequest);

    /**
     * 工艺路线同步
     *
     * @param routerSyncRequest
     * @return
     */
    @WebMethod(action = "http://service.integration.mesnac.com/routerSync")
    WebServiceResponse routerSync(@WebParam(name = "routerSyncRequest") RouterSyncRequest routerSyncRequest);

    /**
     * 工单同步
     *
     * @param shopOrderSyncRequest
     * @return
     */
    @WebMethod(action = "http://service.integration.mesnac.com/shopOrderSync")
    WebServiceResponse shopOrderSync(@WebParam(name = "shopOrderSyncRequest") ShopOrderSyncRequest shopOrderSyncRequest);

    /**
     * 物料批次接收
     *
     * @param itemBatchReceiveRequest
     * @return
     */
    @WebMethod(action = "http://service.integration.mesnac.com/itemBatchReceive")
    WebServiceResponse itemBatchReceive(@WebParam(name = "itemBatchReceiveRequest") ItemBatchReceiveRequest itemBatchReceiveRequest);
}
