zyy
2025-08-25 7cdd4ed05b4a4c3d45b653205d76470500764d9b
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;
}