package com.jwipc.sys.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.sys.dto.ProductGroupSapDTO;

/**
 * @author shenyang.ou
 * @date 2024/4/1 10:22
 * @desc
 */
public interface ProductGroupSapClient {

    @Post(value = "#{sys.sap-host}/RESTAdapter/ERP/ZFM_MM_SRM_007", interceptor = SapInterceptor.class, dataType =
            "json")
    @ApiOperateLog(code = "syncProductGroupWithCategoryCode", name = "同步SRM品类与物料组关系", direction = ApiDirection.SRM_TO_OTHER,
            thirdSysType = ThirdSysType.SAP)
    SapResposeBody syncProductGroupWithCategoryCode(@JSONBody ProductGroupSapDTO quantitySapDTO);
}
