- Add orgid to browserfields.exclouded (hidden in list view) - Add orgid to editexclouded (hidden in edit/create form) - Add _comment in json/hermes_services.json explaining orgid auto-handling - Add detailed NOTE comment in crud_ops.py explaining the orgid flow: .dspy get_userorgid() -> Python functions -> SQL templates -> org isolation
26 lines
1.1 KiB
JSON
26 lines
1.1 KiB
JSON
{
|
||
"_comment": "orgid字段说明: 该字段在编辑/新建时自动从登录用户orgid获取,不从表单输入;列表中也不显示,仅在后台SQL中用于数据隔离。前端通过get_userorgid()获取orgid并传给后端函数。",
|
||
"tblname": "hermes_services",
|
||
"title": "Hermes Services",
|
||
"params": {
|
||
"sortby": ["created_at desc"],
|
||
"logined_userorgid": "orgid",
|
||
"confidential_fields": ["apikey"],
|
||
"browserfields": {
|
||
"exclouded": ["id", "orgid", "service_url", "created_at", "updated_at"],
|
||
"alters": {
|
||
"status": {
|
||
"uitype": "code",
|
||
"data": [
|
||
{"value": "pending", "text": "Pending"},
|
||
{"value": "active", "text": "Active"},
|
||
{"value": "inactive", "text": "Inactive"},
|
||
{"value": "error", "text": "Error"}
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"editexclouded": ["id", "orgid", "created_at", "updated_at"],
|
||
"subtables": []
|
||
}
|
||
} |