干燥机配套车间生产管理系统/云平台服务端
zhuguifei
2024-11-29 339515558253d776769dc2e2560bbb4a0450c989
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package org.jeecg.modules.test.seata.order.feign;
 
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
import java.math.BigDecimal;
 
/**
 * @author zyf
 */
@FeignClient(value ="seata-account")
public interface AccountClient {
 
    /**
     *  扣减余额
     * @param userId
     * @param amount
     * @return
     */
    @PostMapping("/test/seata/account/reduceBalance")
    String reduceBalance(@RequestParam("userId") Long userId, @RequestParam("amount") BigDecimal amount);
}