feat: 新增token默认分组

This commit is contained in:
ccnetcore
2025-11-29 18:28:42 +08:00
parent 86555af6ce
commit 37b4709d76

View File

@@ -1,3 +1,4 @@
using Dm.util;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using SqlSugar; using SqlSugar;
@@ -98,6 +99,13 @@ public class TokenService : ApplicationService
Name = x.Name, Name = x.Name,
IsDisabled = x.IsDisabled IsDisabled = x.IsDisabled
}).ToListAsync(); }).ToListAsync();
tokens.Insert(0,new TokenSelectListOutputDto
{
TokenId = Guid.Empty,
Name = "默认",
IsDisabled = false
});
return tokens; return tokens;
} }