package com.jwipc.supplier.constant;

import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Post;
import com.jwipc.api.dto.SapResposeBody;
import com.jwipc.api.interceptor.SapInterceptor;
import com.jwipc.log.annotation.ApiOperateLog;
import com.jwipc.log.constant.ApiDirection;
import com.jwipc.log.constant.ThirdSysType;
import com.jwipc.supplier.dto.SupplierStateToSapDTO;

/**
 * <p> </p>
 *
 * @author dengjsh
 * @version 1.0
 * @since JDK 1.8
 */
public interface SupplierSapClient {

    @Post(value = "#{sys.sap-host}/RESTAdapter/ERP/ZFM_MM_SRM_020", interceptor = SapInterceptor.class, dataType =
            "json")
    @ApiOperateLog(code = "updateSupplierState", name = "供应商阶段状态同步", direction = ApiDirection.SRM_TO_OTHER,
            thirdSysType = ThirdSysType.SAP)
    SapResposeBody updateSupplierState(@JSONBody SupplierStateToSapDTO supplierStateToSapDTO);



}
