All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.quhaodian.user.data.dao.UserAccountDao Maven / Gradle / Ivy

There is a newer version: 1.8.31
Show newest version
package com.quhaodian.user.data.dao;


import com.quhaodian.data.core.BaseDao;
import com.quhaodian.data.core.Updater;
import com.quhaodian.user.data.entity.UserAccount;
import com.quhaodian.user.data.vo.UserAccountVo;
import com.quhaodian.user.enums.AccountType;

/**
 * Created by imake on 2017年07月20日16:24:20.
 */
public interface UserAccountDao extends BaseDao {

  UserAccount findById(Long id);
  
  /**
   * 根据用户名查找账号.
   *
   * @param username
   * @return
   */
  UserAccount findByUserName(String username);
  
  
  /**
   * 根据手机号查找账号.
   *
   * @param phone
   * @return
   */
  UserAccount findByPhone(String phone);
  
  /**
   * 根据电子邮箱查找账号.
   * @param email
   * @return
   */
  UserAccount findByEmail(String email);
  
  
  UserAccount save(UserAccount bean);

  UserAccount updateByUpdater(Updater updater);

  UserAccount deleteById(Long id);

  UserAccountVo reg(UserAccount bean);


  UserAccountVo binding(String phone, Long user, AccountType type, String password);

  Long checkUserName(String phone, AccountType type);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy