goupan
2024-04-03 5506e9a45e717ffcb67ec313b5a4e8206d9b3a39
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package cn.stylefeng.roses.kernel.seata.wallet.api;
 
/**
 * 用户钱包 api
 *
 * @author wangyl
 * @date 2021/04/10 16:42
 */
public interface WalletApi {
 
    /**
     * 从用户账户中扣除余额
     *
     * @param userId 用户ID
     * @param money  消费金额
     * @author wangyl
     * @date 2021/4/21 9:44
     */
    void debit(String userId, Integer money);
 
}