From e7a6b287a9c8d59e44f2ef766cb36924705986e7 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Tue, 13 Jan 2026 19:05:31 +0800
Subject: [PATCH] 1
---
src/main/java/com/nq/service/IUserAssetsServices.java | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/src/main/java/com/nq/service/IUserAssetsServices.java b/src/main/java/com/nq/service/IUserAssetsServices.java
index 9399f91..8665132 100644
--- a/src/main/java/com/nq/service/IUserAssetsServices.java
+++ b/src/main/java/com/nq/service/IUserAssetsServices.java
@@ -19,9 +19,14 @@
* */
UserAssets assetsByTypeAndUserId(String accetType,Integer userId);
+ /**
+ * 根据id新增所有资产
+ * @param userId
+ * @return
+ */
+ void addUserAssetsListByUserId(Integer userId);
-
- ServerResponse updateUserAssets(Integer id, String amt,String type);
+ ServerResponse updateUserAssets(Integer id, String amt,String type, String accectType);
List<UserAssets> assetsByUserId(Integer userId);
@@ -53,16 +58,17 @@
* @param userId
* @param eUserAssets
* @param amount
- * @param buyAmount
* @return
*/
Boolean aiAvailableBalanceChange(String accetType, Integer userId, EUserAssets eUserAssets, BigDecimal amount) throws Exception;
/**
- * 根据汇率转换金额
- * @param amount 转换金额
- * @param rate 转换汇率
+ * 根据汇率转换
+ * @param fromType
+ * @param toType
+ * @param amount
* @return
+ * @throws Exception
*/
- BigDecimal exchangeAmountByRate(BigDecimal amount, BigDecimal rate);
+ BigDecimal exchangeAmountByRate(String fromType, String toType, BigDecimal amount) throws Exception;
}
--
Gitblit v1.9.3