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

com.zznote.basecommon.service.TRoleService Maven / Gradle / Ivy

The newest version!
package com.zznote.basecommon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zznote.basecommon.common.page.PageInfo;
import com.zznote.basecommon.common.page.PageQuery;
import com.zznote.basecommon.common.util.Rm;
import com.zznote.basecommon.entity.system.TRole;
import com.zznote.basecommon.entity.system.TUserRole;

import java.util.List;
import java.util.Set;

/**
 * 角色信息表
 *
 * @author zhangzhen
 * @email [email protected]
 * @date 2022-04-12 17:04:17
 */
public interface TRoleService extends IService {

    Set selectRolePermissionByUserId(Long userId);

    List selectRoleList(TRole role);

    void checkRoleDataScope(Long roleId);

    TRole selectRoleById(Long roleId);

    String checkRoleNameUnique(TRole role);

    String checkRoleKeyUnique(TRole role);

    Integer insertRole(TRole role);


    /**
     * 校验角色是否允许操作
     *
     * @param role 角色信息
     */
    void checkRoleAllowed(TRole role);

    int authDataScope(TRole role);

    int updateRole(TRole role);

    Rm deleteRoleByIds(Long[] roleIds);

    List selectRoleAll();

    PageInfo selectPageRoleList(TRole role, PageQuery pageQuery);

    int deleteAuthUser(TUserRole userRole);

    int deleteAuthUsers(Long roleId, Long[] userIds);

    int insertAuthUsers(Long roleId, Long[] userIds);

    Long countUserRoleByRoleId(Long roleId);

    List selectRolesByUserId(Long userId);
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy