package com.erp.purchase.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.erp.purchase.dto.PurchaseReturnDTO;
import com.erp.purchase.entity.PurchaseReturn;

public interface PurchaseReturnService {

    IPage<PurchaseReturn> listPage(PurchaseReturnDTO.QueryRequest query);

    PurchaseReturn getById(Long id);

    PurchaseReturn getByReturnNo(String returnNo);

    PurchaseReturn create(PurchaseReturnDTO.CreateRequest request, Long operatorId);

    PurchaseReturn confirmReturn(Long returnId, PurchaseReturnDTO.ConfirmRequest request, Long operatorId);

    void cancel(Long returnId, Long operatorId);
}
