package com.zt.plat.module.contractorder.service.contractreceivesend;

import com.zt.plat.framework.common.pojo.PageResult;

import com.zt.plat.module.contractorder.api.vo.contract.ContractReceiveSendPageReqVO;
import com.zt.plat.module.contractorder.api.vo.contract.ContractReceiveSendRespVO;
import com.zt.plat.module.contractorder.api.vo.contract.ContractReceiveSendSaveReqVO;
import com.zt.plat.module.contractorder.dal.dataobject.contractreceivesend.ContractReceiveSendDO;
import jakarta.validation.Valid;

import java.util.List;

/**
 * 收发货规则 Service 接口
 *
 * @author 后台管理-1
 */
public interface ContractReceiveSendService {

    /**
     * 创建收发货规则
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    ContractReceiveSendRespVO createContractReceiveSend(@Valid ContractReceiveSendSaveReqVO createReqVO);

    /**
     * 更新收发货规则
     *
     * @param updateReqVO 更新信息
     */
    void updateContractReceiveSend(@Valid ContractReceiveSendSaveReqVO updateReqVO);

    /**
     * 删除收发货规则
     *
     * @param id 编号
     */
    void deleteContractReceiveSend(Long id);

    /**
    * 批量删除收发货规则
    *
    * @param ids 编号
    */
    void deleteContractReceiveSendListByIds(List<Long> ids);

    /**
     * 获得收发货规则
     *
     * @param id 编号
     * @return 收发货规则
     */
    ContractReceiveSendDO getContractReceiveSend(Long id);

    /**
     * 获得收发货规则分页
     *
     * @param pageReqVO 分页查询
     * @return 收发货规则分页
     */
    PageResult<ContractReceiveSendDO> getContractReceiveSendPage(ContractReceiveSendPageReqVO pageReqVO);

    /**
     * 通过合同ID获得收发货规则
     *
     * @param contractId 合同号
     * @return 收发货规则
     */
    List<ContractReceiveSendRespVO> getContractReceiveSendListByContractId(Long contractId);

}