rentaiming
2024-05-30 9bcc40d213a44498c46dae5e678e592b918b40b0
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);
}