From 91f82652d3a19efa3da0be659aa8954bbde2c712 Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Tue, 28 Oct 2025 14:03:59 +0800
Subject: [PATCH] 1
---
src/main/java/com/nq/service/IUserAssetsServices.java | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/main/java/com/nq/service/IUserAssetsServices.java b/src/main/java/com/nq/service/IUserAssetsServices.java
index 578745d..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);
@@ -58,10 +63,12 @@
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;
}
--
Gitblit v1.9.3