chore: 拆分app结构,将中间件、异常、子应用拆分成单独的模块

This commit is contained in:
insistence
2024-01-26 09:57:55 +08:00
parent 84c97bdaff
commit 3e199afd35
10 changed files with 170 additions and 235 deletions

View File

@@ -0,0 +1,28 @@
class LoginException(Exception):
"""
自定义登录异常LoginException
"""
def __init__(self, data: str = None, message: str = None):
self.data = data
self.message = message
class AuthException(Exception):
"""
自定义令牌异常AuthException
"""
def __init__(self, data: str = None, message: str = None):
self.data = data
self.message = message
class PermissionException(Exception):
"""
自定义权限异常PermissionException
"""
def __init__(self, data: str = None, message: str = None):
self.data = data
self.message = message