AccountService.java 380 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package com.lcry.springcloudalibaba.service;

import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;


public interface AccountService {

    /**
     * 扣减账户余额
     *
     * @param userId 用户id
     * @param money  金额
     */
    void decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}