mirror of
				https://github.com/nsnail/NetAdmin.git
				synced 2025-11-04 05:05:27 +08:00 
			
		
		
		
	chore: 🔨 用户管理-角色排序 (#212)
[skip ci] Co-authored-by: tk <fiyne1a@dingtalk.com>
This commit is contained in:
		@@ -240,7 +240,9 @@ public sealed class UserService(
 | 
			
		||||
                               .Count(out var total)
 | 
			
		||||
                               .ToListAsync(listUserExp)
 | 
			
		||||
                               .ConfigureAwait(false);
 | 
			
		||||
        return new PagedQueryRsp<QueryUserRsp>(req.Page, req.PageSize, total, list.Adapt<IEnumerable<QueryUserRsp>>());
 | 
			
		||||
        return new PagedQueryRsp<QueryUserRsp>(req.Page, req.PageSize, total
 | 
			
		||||
                                             , list.Select(x => x with { Roles = x.Roles.OrderBy(y => y.Sort).ThenBy(y => y.Id).ToList() })
 | 
			
		||||
                                                   .Adapt<IEnumerable<QueryUserRsp>>());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /// <inheritdoc />
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user