package com.jwipc.job.constant;

import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.converter.json.GsonEncoder;
import com.jwipc.api.interceptor.SapInterceptor;
import com.jwipc.job.dto.SupplierFreezeParamDTO;
import com.jwipc.job.dto.SupplierFreezeResultSapDTO;
import com.jwipc.log.annotation.ApiOperateLog;
import com.jwipc.log.constant.ApiDirection;
import com.jwipc.log.constant.ThirdSysType;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
public interface JobSapClient {
    @GsonEncoder
    @Post(value = "#{sys.sap-host}/RESTAdapter/ERP/ZFM_MM_SRM_013", interceptor = SapInterceptor.class, dataType =
            "json")
    @ApiOperateLog(code = "jobFreezeSupplier", name = "定时任务冻结供应商", direction = ApiDirection.SRM_TO_OTHER,
            thirdSysType = ThirdSysType.SAP)
    SupplierFreezeResultSapDTO jobFreezeSupplier(@JSONBody SupplierFreezeParamDTO quantitySapDTO);
}
