fix: use python3.8 type error add local runing video url
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from fastapi import APIRouter, Depends
|
||||
from typing import List
|
||||
|
||||
from schemas import common as BaseSchema
|
||||
from schemas import role as RoleSchema
|
||||
@@ -10,7 +11,7 @@ router = APIRouter(prefix="/role", tags=["角色管理"])
|
||||
Response = BaseSchema.Response
|
||||
ListAll = BaseSchema.ListAll
|
||||
|
||||
role_list_schema = ListAll[list[RoleSchema.RoleRead]]
|
||||
role_list_schema = ListAll[List[RoleSchema.RoleRead]]
|
||||
|
||||
|
||||
@router.get("", summary="角色列表")
|
||||
|
@@ -1,4 +1,5 @@
|
||||
from fastapi import APIRouter, Depends
|
||||
from typing import List
|
||||
|
||||
from core.security import check_permissions
|
||||
from schemas import common as BaseSchema
|
||||
@@ -11,7 +12,7 @@ router = APIRouter(prefix="/user", tags=["用户管理"])
|
||||
Response = BaseSchema.Response
|
||||
ListAll = BaseSchema.ListAll
|
||||
|
||||
user_list_schema = ListAll[list[UserSchema.UserRead]]
|
||||
user_list_schema = ListAll[List[UserSchema.UserRead]]
|
||||
|
||||
|
||||
@router.get("", summary="用户列表")
|
||||
|
Reference in New Issue
Block a user