예제 #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));
 }