3个业务模块: - pipeline_core: 产线定义(pipelines/steps/versions) - pipeline_ops: 运营(定价/供应量/使用记录) - pipeline_dist: 分销(分销商/独立定价/API密钥) - ahserver独立部署(端口9090) - 独立数据库pipeline - 80个文件, 符合module/db-table/crud三规范
37 lines
1.5 KiB
JSON
37 lines
1.5 KiB
JSON
{
|
|
"tblname": "pipeline_pricing",
|
|
"title": "产线定价管理",
|
|
"params": {
|
|
"sortby": ["effective_date desc"],
|
|
"logined_userorgid": "org_id",
|
|
"browserfields": {
|
|
"exclouded": ["id"],
|
|
"alters": {
|
|
"pipeline_id": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/get_search_pipeline_id.dspy')}}"
|
|
},
|
|
"pricing_type": {
|
|
"uitype": "code",
|
|
"data": [{"value": "per_call", "text": "按次计费"}, {"value": "per_token", "text": "按token计费"}, {"value": "subscription", "text": "订阅制"}]
|
|
},
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [{"value": "active", "text": "生效中"}, {"value": "expired", "text": "已过期"}, {"value": "disabled", "text": "已停用"}]
|
|
}
|
|
}
|
|
},
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('../api/pipeline_pricing_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('../api/pipeline_pricing_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('../api/pipeline_pricing_delete.dspy')}}"
|
|
},
|
|
"data_filter": {
|
|
"AND": [
|
|
{"field": "pipeline_id", "op": "=", "var": "filter_pipeline_id"},
|
|
{"field": "status", "op": "=", "var": "filter_status"}
|
|
]
|
|
}
|
|
}
|
|
}
|