1
zyy
2025-09-15 b08c3ca89f463f5a6775d77107d91cadce8bdf05
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;
}