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

com.quhaodian.user.data.dao.UserInfoDao 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.UserInfo;

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

  public UserInfo findById(Long id);

  public UserInfo save(UserInfo bean);

  public UserInfo updateByUpdater(Updater updater);

  public UserInfo deleteById(Long id);

  /**
   * 添加角色
   *
   * @param id
   * @param roleid
   * @return
   */
  UserInfo addRole(Long id, Long roleid);


  /**
   * 添加多个角色
   *
   * @param id
   * @param role
   * @return
   */
  UserInfo addRoles(Long id, Long... role);


  /**
   * 添加角色
   *
   * @param id
   * @param roleName
   * @return
   */
  UserInfo addRole(Long id, String roleName);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy