package com.oying.modules.pc.product.service;
|
|
import com.oying.modules.pc.product.domain.Product;
|
|
public interface ProductInventoryService {
|
Product getProductById(Long id);
|
Product setStockQuantity(Long product, Integer quantity, Long version);
|
Product increaseStock(Long product, Integer amount);
|
Product decreaseStock(Long product, Integer amount);
|
boolean isStockSufficient(Long productId, Integer requiredAmount);
|
}
|