public async Task <MessageModel <RoleAssigMenuViewModel> > GetRoleAssig([FromQuery] Guid roleId)
        {
            var data = new MessageModel <RoleAssigMenuViewModel>();
            var RoleAssigMenuView = await _roleAssigServer.GetRoleAssigMenuViewModels(roleId);

            data.success  = true;
            data.response = RoleAssigMenuView;
            data.msg      = "角色权限获取成功";
            return(data);
        }
Beispiel #2
0
        public async Task <MessageModel <RoleAssigMenuViewModel> > GetRoleAssig([FromQuery] Guid roleId)
        {
            var data = new MessageModel <RoleAssigMenuViewModel>();

            try
            {
                var RoleAssigMenuView = await _roleAssigServer.GetRoleAssigMenuViewModels(roleId);

                data.success  = true;
                data.response = RoleAssigMenuView;
                data.msg      = "角色权限获取成功";
                return(data);
            }
            catch (Exception ex)
            {
                data.msg = "获取数据失败" + ex.Message;
                return(data);
            }
        }