3个业务模块: - pipeline_core: 产线定义(pipelines/steps/versions) - pipeline_ops: 运营(定价/供应量/使用记录) - pipeline_dist: 分销(分销商/独立定价/API密钥) - ahserver独立部署(端口9090) - 独立数据库pipeline - 80个文件, 符合module/db-table/crud三规范
9 lines
344 B
Plaintext
9 lines
344 B
Plaintext
data = [{'value': '', 'text': '全部'}]
|
|
try:
|
|
async with get_sor_context(request._run_ns, 'pipeline') as sor:
|
|
rows = await sor.sqlExe('select id as value, name as text from pipelines order by name', {})
|
|
data.extend(list(rows))
|
|
except Exception as e:
|
|
debug('error: ' + str(e))
|
|
return json.dumps(data, ensure_ascii=False)
|