mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-10-06 09:41:59 +00:00
* Add operation log related interfaces * Update to native ASGI middleware * add the opera model class to the __init__.py * Executable code collation * Reply to the access middleware * Using the request extension params in the login log * Fix the whitelist list * Fix username resolution
16 lines
600 B
Python
16 lines
600 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
# 导入所有模型,并将 Base 放在最前面, 以便 Base 拥有它们
|
|
# imported by Alembic
|
|
"""
|
|
from backend.app.database.base_class import MappedBase
|
|
from backend.app.models.sys_api import Api
|
|
from backend.app.models.sys_casbin_rule import CasbinRule
|
|
from backend.app.models.sys_dept import Dept
|
|
from backend.app.models.sys_menu import Menu
|
|
from backend.app.models.sys_role import Role
|
|
from backend.app.models.sys_user import User
|
|
from backend.app.models.sys_login_log import LoginLog
|
|
from backend.app.models.sys_opera_log import OperaLog
|