You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
594 B

package com.crm.auth.service;
import com.crm.auth.domain.entity.SysRole;
import com.crm.base.service.IBaseService;
import java.util.List;
public interface ISysRoleService extends IBaseService<SysRole> {
/**
* 分配角色的菜单权限(全量替换,事务保护)
*
* @param roleId 角色 ID
* @param menuIds 菜单 ID 列表
*/
void assignMenus(Long roleId, List<Long> menuIds);
/**
* 删除角色并级联清理角色-菜单关联(事务保护)
*
* @param roleId 角色 ID
*/
void deleteRoleCascade(Long roleId);
}