import request from "@/utils/request";

// 修改企业技术需求审核
export const updateTechnologyDemand = (data) =>
    request({
        url: "/business/dataReview/updateTechnologyDemand",
        method: "POST",
        data,
    });

// 批量审核企业技术需求
export const batchTechnologyDemand = (ids, status) =>
    request({
        url: `/business/dataReview/batchTechnologyDemand/${ids}/${status}`,
        method: "PUT",
    });

// 批量删除企业技术需求
export const deleteTechnologyDemand = (ids) =>
    request({
        url: `/business/dataReview/deleteTechnologyDemand/${ids}`,
        method: "DELETE",
    });

/**
 * 企业技术需求指派经纪人
 * @param demandId
 * @param brokerId
 * @param brokerName
 * @return {*}
 */
export const dataReviewAppointBroker = (
    demandId, // 企业技术需求id
    brokerId, // 经纪人id
    brokerName // 经纪人姓名 // 获取企业技术需求详情
) =>
    request({
        url: `/business/dataReview/appointBroker/${demandId}/${brokerId}/${brokerName}`,
        method: "POST",
    });
