xin
2025-09-22 6681b64ff05626c6f10ad69e49a87c3969b72bb8
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);
}