3个业务模块: - pipeline_core: 产线定义(pipelines/steps/versions) - pipeline_ops: 运营(定价/供应量/使用记录) - pipeline_dist: 分销(分销商/独立定价/API密钥) - ahserver独立部署(端口9090) - 独立数据库pipeline - 80个文件, 符合module/db-table/crud三规范
14 lines
255 B
Python
14 lines
255 B
Python
from ahserver.serverenv import ServerEnv
|
|
|
|
DBNAME = "pipeline"
|
|
|
|
|
|
def get_module_dbname(mname):
|
|
"""All modules share the pipeline database."""
|
|
return DBNAME
|
|
|
|
|
|
def set_globalvariable():
|
|
g = ServerEnv()
|
|
g.get_module_dbname = get_module_dbname
|