- 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路径
34 lines
1.2 KiB
JSON
34 lines
1.2 KiB
JSON
{
|
|
"tblname": "product_resource",
|
|
"alias": "product_resource_list",
|
|
"title": "产品资源绑定管理",
|
|
"params": {
|
|
"sortby": ["priority asc", "created_at desc"],
|
|
"data_filter": {
|
|
"fields": [
|
|
{"field": "product_id", "title": "产品", "uitype": "code"},
|
|
{"field": "resource_type", "title": "资源类型", "uitype": "code"},
|
|
{"field": "status", "title": "状态", "uitype": "code"}
|
|
]
|
|
},
|
|
"browserfields": {
|
|
"exclouded": [],
|
|
"alters": {}
|
|
},
|
|
"editexclouded": ["id", "created_at", "updated_at"],
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('../api/product_resource_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('../api/product_resource_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('../api/product_resource_delete.dspy')}}"
|
|
},
|
|
"subtables": [
|
|
{
|
|
"field": "product_resource_id",
|
|
"title": "供应商关联",
|
|
"url": "{{entire_url('../product_resource_supplier_list')}}",
|
|
"subtable": "product_resource_supplier"
|
|
}
|
|
]
|
|
}
|
|
}
|