package com.jwipc.tender.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.tender.dto.PriceImportDTO;

/**
 * @author shenyang.ou
 * @date 2024/3/21 13:49
 * @desc 相关接口
 */
public interface QuotaOaClient {
    @GsonEncoder
    @Post(value = "#{sys.oa-host}/api/srm/procurePrice/import", interceptor = OAInterceptor.class)
    @ApiOperateLog(code = "priceImport", name = "价格导入审批", direction = ApiDirection.SRM_TO_OTHER,
            thirdSysType = ThirdSysType.OA)
    ApiResult<String> priceImport(@JSONBody PriceImportDTO priceImportDTO);
}
