示例#1
0
 public virtual async Task <ListResultDto <MenuDto> > GetRoleMenuListAsync(string role, PlatformType platformType)
 {
     return(await MenuAppService.GetRoleMenuListAsync(new MenuGetByRoleInput
     {
         Role = role,
         PlatformType = platformType
     }));
 }
示例#2
0
 public virtual async Task <ListResultDto <MenuDto> > GetRoleMenuListAsync(string role, string framework)
 {
     return(await MenuAppService.GetRoleMenuListAsync(new MenuGetByRoleInput
     {
         Role = role,
         Framework = framework
     }));
 }
示例#3
0
        public virtual async Task <ListResultDto <MenuDto> > GetUserMenuListAsync(Guid userId, PlatformType platformType)
        {
            var userRoles = await UserRoleFinder.GetRolesAsync(userId);

            var getMenuByUser = new MenuGetByUserInput
            {
                UserId       = userId,
                Roles        = userRoles,
                PlatformType = platformType
            };

            return(await MenuAppService.GetUserMenuListAsync(getMenuByUser));
        }
示例#4
0
        public virtual async Task <ListResultDto <MenuDto> > GetUserMenuListAsync(Guid userId, string framework)
        {
            var userRoles = await UserRoleFinder.GetRolesAsync(userId);

            var getMenuByUser = new MenuGetByUserInput
            {
                UserId    = userId,
                Roles     = userRoles,
                Framework = framework
            };

            return(await MenuAppService.GetUserMenuListAsync(getMenuByUser));
        }
示例#5
0
 public virtual async Task <ListResultDto <MenuDto> > GetUserMenuListAsync(MenuGetByUserInput input)
 {
     return(await MenuAppService.GetUserMenuListAsync(input));
 }
示例#6
0
 public virtual async Task SetUserMenusAsync(UserMenuInput input)
 {
     await MenuAppService.SetUserMenusAsync(input);
 }
示例#7
0
 public virtual async Task DeleteAsync(Guid id)
 {
     await MenuAppService.DeleteAsync(id);
 }
示例#8
0
 public virtual async Task <MenuDto> UpdateAsync(Guid id, MenuUpdateDto input)
 {
     return(await MenuAppService.UpdateAsync(id, input));
 }
示例#9
0
 public virtual async Task <MenuDto> CreateAsync(MenuCreateDto input)
 {
     return(await MenuAppService.CreateAsync(input));
 }
示例#10
0
 public virtual async Task <PagedResultDto <MenuDto> > GetListAsync(MenuGetListInput input)
 {
     return(await MenuAppService.GetListAsync(input));
 }
示例#11
0
 public virtual async Task <MenuDto> GetAsync(Guid id)
 {
     return(await MenuAppService.GetAsync(id));
 }