package net.lab1024.sa.admin.module.business.wms.inventory.inventory.service;

import java.math.BigDecimal;
import java.util.List;

import net.lab1024.sa.admin.module.business.wms.inventory.inventory.domain.entity.InventoryEntity;
import net.lab1024.sa.admin.module.business.wms.inventory.inventory.domain.form.InventoryAddForm;
import net.lab1024.sa.admin.module.business.wms.inventory.inventory.domain.form.InventoryUpdateForm;
import net.lab1024.sa.base.common.domain.ResponseDTO;

/**
 * 库存信息 Service
 *
 * @Author 霍锦
 * @Date 2024-12-06 17:24:53
 * @Copyright 友仓
 */
public interface InventoryService {

    /**
     * 添加
     */
    ResponseDTO<String> add(InventoryAddForm addForm);

    /**
     * 更新
     */
    ResponseDTO<String> update(InventoryUpdateForm updateForm);

    /**
     * 批量删除
     */
    ResponseDTO<String> batchDelete(List<Long> idList);

    /**
     * 单个删除
     */
    ResponseDTO<String> delete(Long inventoryId);


    InventoryEntity createInventory(Long itemKeyId, Long locationId, Long stockId, BigDecimal quantity);

}
