rentaiming
2024-07-14 a724b2fad5ef672e3f6531a4fe841bd35a4765ba
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.ruoyi.seatademo.service;
 
public interface ProductService
{
    /**
     * 扣减库存
     *
     * @param productId 商品 ID
     * @param amount 扣减数量
     * @return 商品总价
     */
    Double reduceStock(Long productId, Integer amount);
}