package com.jwipc.finance.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.finance.dto.DeductionImportDTO;
import com.jwipc.log.annotation.ApiOperateLog;
import com.jwipc.log.constant.ApiDirection;
import com.jwipc.log.constant.ThirdSysType;

/**
 * @author shenyang.ou
 * @date 2024/3/29 10:03
 * @desc
 */
public interface DeductionOaClient {
    @GsonEncoder
    @Post(value = "#{sys.oa-host}/api/srm/supplier/addOrModifyDeduction", interceptor = OAInterceptor.class)
    @ApiOperateLog(code = "addOrModifyDeduction", name = "供应商质量异常扣款单创建", direction = ApiDirection.SRM_TO_OTHER,
            thirdSysType = ThirdSysType.OA)
    ApiResult<String> deductionImport(@JSONBody DeductionImportDTO deductionImportDTO);
}
