zepengdev
2025-09-17 c06d972894b536cd96b817c922fb73f69c9d1a71
1
2
3
4
5
6
7
8
9
10
11
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);
}