- 5个CRUD JSON从自定义格式重写为规范格式(tblname/alias/params) - 13个新CRUD dspy文件(create/update/delete + noop) - product_resource_delete含级联删除product_resource_supplier - product_subscription CRUD含完整校验 - product_usage_log只读(noop dspy) - load_path.py注册所有新增API和CRUD路径
26 lines
968 B
JSON
26 lines
968 B
JSON
{
|
|
"tblname": "product_subscription",
|
|
"alias": "product_subscription_list",
|
|
"title": "客户订购管理",
|
|
"params": {
|
|
"sortby": ["created_at desc"],
|
|
"data_filter": {
|
|
"fields": [
|
|
{"field": "product_id", "title": "产品", "uitype": "code"},
|
|
{"field": "status", "title": "状态", "uitype": "code"},
|
|
{"field": "subscription_type", "title": "订购类型", "uitype": "code"}
|
|
]
|
|
},
|
|
"browserfields": {
|
|
"exclouded": [],
|
|
"alters": {}
|
|
},
|
|
"editexclouded": ["id", "quota_used", "created_at", "updated_at"],
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('../api/product_subscription_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('../api/product_subscription_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('../api/product_subscription_delete.dspy')}}"
|
|
}
|
|
}
|
|
}
|