单元测试:新建用户与用户组

This commit is contained in:
2025-07-14 15:13:05 +08:00
parent e011a1ea0e
commit 557a50f539
26 changed files with 396 additions and 242 deletions

View File

@@ -8,7 +8,7 @@ async def AuthRequired(
'''
AuthRequired 需要登录
'''
return True
from models.user import User
async def SignRequired(
token: Annotated[str, Depends(jwt.oauth2_scheme)]
@@ -27,4 +27,4 @@ async def AdminRequired(
使用方法:
>>> APIRouter(dependencies=[Depends(is_admin)])
'''
...
pass