package com.nq.service;
|
|
import com.nq.common.ServerResponse;
|
import com.nq.enums.EUserAssets;
|
import com.nq.pojo.Bank;
|
import com.nq.pojo.UserAssets;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
public interface IUserAssetsServices {
|
|
|
|
/**
|
* 根据id获取 和 类型 获取 资产
|
* @param accetType 资产类型
|
* @param userId 用户id
|
* */
|
UserAssets assetsByTypeAndUserId(String accetType,Integer userId);
|
|
|
|
ServerResponse updateUserAssets(Integer id, String amt);
|
|
|
List<UserAssets> assetsByUserId(Integer userId);
|
|
|
/**
|
* 根据id获取 和 类型 获取 资产
|
* @param accetType 资产类型
|
* @param userId 用户id
|
* */
|
BigDecimal getAvailableBalance(String accetType,Integer userId);
|
|
|
|
|
/**
|
* @param accetType 资产类型
|
* @param userId 用户id
|
* @param eUserAssets EUserAssets
|
* @param amount 金额
|
* @param desc 描述
|
* @param descType 购买类型 充值 持仓 平仓 提现
|
* */
|
Boolean availablebalanceChange(String accetType, Integer userId, EUserAssets eUserAssets, BigDecimal amount, String desc, String descType);
|
|
|
}
|