zyy
2025-08-11 fd112c08c7bdc1b549c92d1e851f948c3410c502
src/main/java/com/nq/service/IUserAssetsServices.java
@@ -19,7 +19,12 @@
     * */
    UserAssets  assetsByTypeAndUserId(String accetType,Integer userId);
    /**
     * 根据id新增所有资产
     * @param userId
     * @return
     */
    void addUserAssetsListByUserId(Integer userId);
    ServerResponse updateUserAssets(Integer id, String amt,String type);
@@ -45,7 +50,25 @@
     * @param  desc   描述
     * @param   descType 购买类型  充值   持仓  平仓   提现
     * */
    Boolean availablebalanceChange(String accetType, Integer userId, EUserAssets eUserAssets, BigDecimal amount, String desc, String descType);
    Boolean availablebalanceChange(String accetType, Integer userId, EUserAssets eUserAssets, BigDecimal amount, String desc, String descType) throws Exception;
    /**
     * ai交易
     * @param accetType
     * @param userId
     * @param eUserAssets
     * @param amount
     * @return
     */
    Boolean aiAvailableBalanceChange(String accetType, Integer userId, EUserAssets eUserAssets, BigDecimal amount) throws Exception;
    /**
     * 根据汇率转换
     * @param fromType
     * @param toType
     * @param amount
     * @return
     * @throws Exception
     */
    BigDecimal exchangeAmountByRate(String fromType, String toType, BigDecimal amount) throws Exception;
}