perf: 优化定时任务模块service层及异常处理

This commit is contained in:
insistence
2024-07-14 22:37:35 +08:00
parent 4669d6b29b
commit c39375b776
7 changed files with 398 additions and 174 deletions

View File

@@ -5,6 +5,9 @@ class CommonConstant:
WWW: www主域
HTTP: http请求
HTTPS: https请求
LOOKUP_RMI: RMI远程方法调用
LOOKUP_LDAP: LDAP远程方法调用
LOOKUP_LDAPS: LDAPS远程方法调用
YES: 是否为系统默认(是)
NO: 是否为系统默认(否)
DEPT_NORMAL: 部门正常状态
@@ -16,6 +19,9 @@ class CommonConstant:
WWW = 'www.'
HTTP = 'http://'
HTTPS = 'https://'
LOOKUP_RMI = 'rmi:'
LOOKUP_LDAP = 'ldap:'
LOOKUP_LDAPS = 'ldaps:'
YES = 'Y'
NO = 'N'
DEPT_NORMAL = '0'
@@ -66,6 +72,27 @@ class HttpStatusConstant:
WARN = 601
class JobConstant:
"""
定时任务常量
JOB_ERROR_LIST: 定时任务禁止调用模块列表
JOB_WHITE_LIST: 定时任务允许调用模块列表
"""
JOB_ERROR_LIST = [
'app',
'config',
'exceptions',
'middlewares',
'module_admin',
'server',
'sub_applications',
'utils',
]
JOB_WHITE_LIST = ['module_task']
class MenuConstant:
"""
菜单常量