fix: use python3.8 type error add local runing video url

This commit is contained in:
zy7y
2023-05-31 20:34:10 +08:00
parent 99354c92f9
commit e7cc1e5e18
73 changed files with 39 additions and 602 deletions

View File

@@ -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="角色列表")

View File

@@ -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="用户列表")