package com.jwipc.order.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.ApiResult;
import com.jwipc.api.interceptor.OAInterceptor;
import com.jwipc.log.annotation.ApiOperateLog;
import com.jwipc.log.constant.ApiDirection;
import com.jwipc.log.constant.ThirdSysType;
import com.jwipc.order.dto.PcnManageToSap;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
public interface PcnOaClient {

    @GsonEncoder
    @Post(value = "#{sys.oa-host}/api/srm/pcn/addOrModify", interceptor = OAInterceptor.class)
    @ApiOperateLog(code = "savePcnTOOA", name = "推送pcn到OA", direction = ApiDirection.SRM_TO_OTHER,
            thirdSysType = ThirdSysType.OA)
    ApiResult savePcnTOOA(@JSONBody PcnManageToSap pcnManageToSap);

}
