using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace YY.Admin.Services.Service.Role { public class SysRoleMenuService : ISysRoleMenuService, ISingletonDependency { private readonly ISqlSugarClient _dbContext; public SysRoleMenuService(ISqlSugarClient context) { _dbContext = context; } public async Task> GetRoleMenuIdList(List roleIdList) { return await _dbContext.Queryable() .Where(u => roleIdList.Contains(u.RoleId)) .Select(u => u.MenuId).ToListAsync(); } } }