zyy
2025-08-04 7f73eadee4c6b73f2c0608254bc9e9b82f023c3d
src/main/java/com/nq/service/IUserAssetsServices.java
@@ -21,7 +21,7 @@
    ServerResponse updateUserAssets(Integer id, String amt);
    ServerResponse updateUserAssets(Integer id, String amt,String type);
    List<UserAssets>  assetsByUserId(Integer userId);
@@ -45,7 +45,24 @@
     * @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
     * @param buyAmount
     * @return
     */
    Boolean aiAvailableBalanceChange(String accetType, Integer userId, EUserAssets eUserAssets, BigDecimal amount) throws Exception;
    /**
     * 根据汇率转换MEX金额
     * @param accetType  账户类型
     * @param amount     转换金额
     * @return
     */
    BigDecimal exchangeAmountByRate(String accetType, BigDecimal amount) throws Exception;
}