websoft9/appmanage/api/utils/const.py

41 lines
1.7 KiB
Python
Raw Normal View History

2023-03-06 07:11:27 +08:00
# 所有常量统一定义区
2023-04-14 11:50:18 +08:00
# 错误代码定义
2023-08-23 17:57:23 +08:00
ERROR_CLIENT_PARAM_BLANK = "Client.Parameter.Blank.Error"
ERROR_CLIENT_PARAM_Format = "Client.Parameter.Format.Error"
ERROR_CLIENT_PARAM_NOTEXIST = "Client.Parameter.Value.NotExist.Error"
ERROR_CLIENT_PARAM_REPEAT = "Client.Parameter.Value.Repeat.Error"
ERROR_CONFIG_NGINX = "Nginx.Configure.Error"
ERROR_SERVER_COMMAND = "Server.Container.Error"
ERROR_SERVER_SYSTEM = "Server.SystemError"
ERROR_SERVER_RESOURCE = "Server.ResourceError"
ERROR_SERVER_CONFIG_MISSING = "Server.Config.NotFound"
2023-04-14 11:50:18 +08:00
2023-04-19 11:01:02 +08:00
# 错误信息定义
2023-08-23 17:57:23 +08:00
ERRORMESSAGE_CLIENT_PARAM_BLANK = "Client.Parameter.Blank.Error"
ERRORMESSAGE_CLIENT_PARAM_Format = "Client.Parameter.Format.Error"
ERRORMESSAGE_CLIENT_PARAM_NOTEXIST = "Client.Parameter.Value.NotExist.Error"
ERRORMESSAGE_CLIENT_PARAM_REPEAT = "Client.Parameter.Value.Repeat.Error"
ERRORMESSAGE_SERVER_COMMAND = "Server.Container.Error"
ERRORMESSAGE_SERVER_SYSTEM = "Server.SystemError"
ERRORMESSAGE_SERVER_RESOURCE = "Server.ResourceError"
ERRORMESSAGE_SERVER_VERSION_NOTSUPPORT = "Server.Version.NotSupport"
ERRORMESSAGE_SERVER_VERSION_NEEDUPGRADE = "Server.Version.NeedUpgradeCore"
2023-04-19 11:01:02 +08:00
2023-03-06 07:11:27 +08:00
# 应用状态定义
2023-03-30 15:07:46 +08:00
# 应用启动中 installing
2023-04-14 11:20:44 +08:00
APP_STATUS_INSTALLING = "installing"
2023-03-30 15:07:46 +08:00
# 应用正在运行 running
2023-04-14 11:20:44 +08:00
APP_STATUS_RUNNING = "running"
# 应用已经停止 exited
APP_STATUS_EXITED = "exited"
# 应用不断重启 restarting
APP_STATUS_RESTARTING = "restarting"
# 应用错误 failed
2023-04-19 11:01:02 +08:00
APP_STATUS_FAILED = "failed"
2023-06-30 11:47:00 +08:00
2023-08-23 17:57:23 +08:00
NGINX_URL = "http://websoft9-nginxproxymanager:81"
# ARTIFACT_URL="https://artifact.azureedge.net/release/websoft9"
ARTIFACT_URL = "https://w9artifact.blob.core.windows.net/release/websoft9"
ARTIFACT_URL_DEV = "https://w9artifact.blob.core.windows.net/dev/websoft9"