fix(api): expose real 500 error stack trace and fix missing func import

This commit is contained in:
DXC
2026-03-25 10:56:31 +08:00
parent ac7774e0e3
commit 7421ef3231
6 changed files with 20 additions and 3 deletions

View File

@ -1,6 +1,7 @@
from app.models.system import SysMenu, SysElement, SysRolePermission
from app.extensions import db
from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy import func
class PermissionService: