| | |
| | | * */ |
| | | UserAssets assetsByTypeAndUserId(String accetType,Integer userId); |
| | | |
| | | |
| | | /** |
| | | * 根据id新增所有资产 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | void addUserAssetsListByUserId(Integer userId); |
| | | |
| | | ServerResponse updateUserAssets(Integer id, String amt,String type); |
| | | |
| | |
| | | Boolean aiAvailableBalanceChange(String accetType, Integer userId, EUserAssets eUserAssets, BigDecimal amount) throws Exception; |
| | | |
| | | /** |
| | | * 根据汇率转换MEX金额 |
| | | * @param accetType 账户类型 |
| | | * @param amount 转换金额 |
| | | * 根据汇率转换 |
| | | * @param fromType |
| | | * @param toType |
| | | * @param amount |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | BigDecimal exchangeAmountByRate(String accetType, BigDecimal amount) throws Exception; |
| | | BigDecimal exchangeAmountByRate(String fromType, String toType, BigDecimal amount) throws Exception; |
| | | } |