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

com.ueboot.shiro.service.userrole.UserRoleService Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
/*
* Copyright (c)  2018
* All rights reserved.
* 2018-08-21 09:39:51
*/
package com.ueboot.shiro.service.userrole;

import com.ueboot.shiro.entity.UserRole;
import com.ueboot.core.service.BaseService;

import java.util.List;

/**
 * Created on 2018-08-21 09:39:51
 * @author yangkui
 * @since 2.1.0 by ueboot-generator
 */
public interface UserRoleService extends BaseService {


    void saveUserRole(Long userId,Long[] roleIds);


    /**
     * 根据用户ID查询用户所属角色
     * @param userId 用户ID
     * @return 角色列表
     */
    List findByUserId(Long userId);

    /**
     * 根据角色ID查询角色所属用户列表
     * @param roleId 角色ID
     * @return 用户列表
     */
    List findByRoleId(Long roleId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy