xin
2025-09-17 6d31d535d737ed26c4d9d61cd4e0b5483cb9b0ba
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);
}