package com.yeshi.fanli.service.inter.user; import java.util.List; import com.alipay.api.AlipayApiException; import com.yeshi.fanli.entity.bus.user.BindingAccount; import com.yeshi.fanli.exception.AlipayAccountException; import com.yeshi.fanli.exception.AlipayTransferException; import com.yeshi.fanli.exception.BindingAccountException; public interface BindingAccountService { /** * 获取当前用户绑定的账�? * * @param uid * 用户id * @return �?��账号 */ public List getBindingAccountByUid(long uid); /** * 添加提现账号 * * @param addAccount * @throws BindingAccountException */ public void addBindingAccount(BindingAccount addAccount) throws BindingAccountException; /** * 删除提现账号 * * @param account * @return */ public Integer deleteBindingAccount(BindingAccount account); /** * 获取提现账号 * * @param uid * 用户id * @param type * 账户类型 * @return BindingAccount */ public BindingAccount getBindingAccountByUidAndType(long uid, int type); /** * 更换绑定的支付宝的账号 * * @param uid * @param name * @param account * @return */ public BindingAccount changeAlipayBinding(Long uid, String name, String account); /** * 更换绑定的支付宝的账号(需要验证支付宝的正确性) * * @param uid * @param name * @param account * @return */ public BindingAccount changeAlipayBindingWithVerify(Long uid, String name, String account) throws AlipayTransferException,AlipayApiException,AlipayAccountException; /** * 根据ids删除绑定信息 * * @param id * @return */ public int deleteByPrimaryKey(Long id); /** * 验证支付宝账户是否可用 * * @param uid * @param account * -支付宝账号 * @param name * -支付宝真实姓名 * @throws AlipayTransferException */ public void validAlipayAccount(Long uid, String account, String name) throws AlipayTransferException,AlipayApiException,AlipayAccountException; /** * 是否能验证支付宝绑定 * @param uid * @return */ public boolean canVerifyAlipayAccount(Long uid) throws BindingAccountException; }