mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
Create const.py
This commit is contained in:
parent
1d5bdd3dc7
commit
d7ba4098e7
20
appmanage/api/utils/const.py
Normal file
20
appmanage/api/utils/const.py
Normal file
@ -0,0 +1,20 @@
|
||||
# 所有常量统一定义区
|
||||
|
||||
# 接口返回值定义
|
||||
# 成功
|
||||
RETURN_SUCCESS = 0
|
||||
# 失败
|
||||
RETURN_FAIL = -1
|
||||
|
||||
# 应用状态定义
|
||||
# 应用正在启动
|
||||
RETURN_RUNNING = 0
|
||||
# 应用正在运行中
|
||||
RETURN_RUNNING = 1
|
||||
# 应用已经停止
|
||||
RETURN_STOP = 2
|
||||
# 应用错误或不存在
|
||||
RETURN_STOP = -1
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user