- get_organizations/get_upapps/uapi_options: 返回纯数组[{value,text}]
- 新增 get_catelogs/get_apis/get_ppids: 独立下拉数据API
- llm_api_map_manage.ui: 使用独立API替代data_field嵌套格式
- json/llm.json: 移除data_field,添加上架/下架toolbar
- llm_status_update.dspy: 模型上下架状态更新API
- 重新生成 llm/index.ui CRUD界面
15 lines
411 B
Python
15 lines
411 B
Python
#!/usr/bin/env python3
|
|
import json
|
|
|
|
result = []
|
|
|
|
try:
|
|
dbname = get_module_dbname('pricing')
|
|
async with DBPools().sqlorContext(dbname) as sor:
|
|
rows = await sor.sqlExe("select id, name from pricing_program order by name", {})
|
|
result = [{'value': r['id'], 'text': r['name']} for r in (rows or [])]
|
|
except Exception as e:
|
|
pass
|
|
|
|
return json.dumps(result, ensure_ascii=False, default=str)
|