package com.jwipc.supplier.constant;

import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.converter.json.GsonEncoder;
import com.jwipc.api.dto.ApiResponse;
import com.jwipc.api.interceptor.MesInterceptor;
import com.jwipc.log.annotation.ApiOperateLog;
import com.jwipc.log.constant.ApiDirection;
import com.jwipc.log.constant.ThirdSysType;
import com.jwipc.supplier.dto.SupplierAvlToMesDTO;

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

    @GsonEncoder
    @Post(value = "#{sys.mes-host}/api/api/SRMOABomAvlDataList", interceptor = MesInterceptor.class, dataType =
            "json")
    @ApiOperateLog(code = "update supplier Avl", name = "供应商AVL推送MES", direction = ApiDirection.SRM_TO_OTHER,
            thirdSysType = ThirdSysType.MES)
    ApiResponse updateSupplierAVL(@JSONBody SupplierAvlToMesDTO devPlanToSapDTO);



}
