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

cn.wizzer.app.sys.modules.services.SysUserService Maven / Gradle / Ivy

There is a newer version: 5.2.8-zookeeper
Show newest version
package cn.wizzer.app.sys.modules.services;

import cn.wizzer.app.sys.modules.models.Sys_menu;
import cn.wizzer.app.sys.modules.models.Sys_user;
import cn.wizzer.framework.base.service.BaseService;

import java.util.List;

/**
 * Created by wizzer on 2016/12/22.
 */
public interface SysUserService extends BaseService {
    /**
     * 查询用户的角色
     *
     * @param user
     * @return
     */
    List getRoleCodeList(Sys_user user);

    /**
     * 通过用户ID获取菜单及权限
     *
     * @param userId
     * @return
     */
    List getMenusAndButtons(String userId);

    /**
     * 通过用户ID获取菜单
     *
     * @param userId
     * @return
     */
    List getDatas(String userId);

    /**
     * 绑定菜单到用户
     *
     * @param user
     */
    Sys_user fillMenu(Sys_user user);

    /**
     * 通过用户ID删除用户
     *
     * @param userId
     */
    void deleteById(String userId);

    /**
     * 批量删除用户
     *
     * @param userIds
     */
    void deleteByIds(String[] userIds);

    /**
     * 通过用户ID和菜单父ID获取下级权限菜单
     *
     * @param userId
     * @param pid
     * @return
     */
    List getRoleMenus(String userId, String pid);

    /**
     * 判断用户是否有下级数据权限
     *
     * @param userId
     * @param pid
     * @return
     */
    boolean hasChildren(String userId, String pid);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy