websoft9/appmanage/api/utils/const.py
2023-05-16 16:24:04 +08:00

32 lines
1.2 KiB
Python

# 所有常量统一定义区
# 错误代码定义
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_API_NGINX="Api.Nginx.Error"
ERROR_SERVER_COMMAND="Server.Container.Error"
ERROR_SERVER_SYSTEM="Server.SystemError"
ERROR_SERVER_RESOURCE="Server.ResourceError"
# 错误信息定义
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"
# 应用状态定义
# 应用启动中 installing
APP_STATUS_INSTALLING = "installing"
# 应用正在运行 running
APP_STATUS_RUNNING = "running"
# 应用已经停止 exited
APP_STATUS_EXITED = "exited"
# 应用不断重启 restarting
APP_STATUS_RESTARTING = "restarting"
# 应用错误 failed
APP_STATUS_FAILED = "failed"