package com.erp.purchase.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.erp.purchase.dto.SupplierDTO;
import com.erp.purchase.entity.Supplier;

public interface SupplierService {

    IPage<Supplier> listPage(SupplierDTO.QueryRequest query);

    Supplier getById(Long id);

    Supplier getByCode(String supplierCode);

    Supplier create(SupplierDTO.CreateRequest request, Long operatorId);

    Supplier update(SupplierDTO.UpdateRequest request, Long operatorId);

    void delete(Long id, Long operatorId);

    void updateStatus(Long id, String status, Long operatorId);
}
