hermes-web-cli/json/hermes_services.json
yumoqing 715d7d3952 fix: exclude orgid from UI list and edit form, add CRUD documentation
- 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
2026-04-27 12:03:38 +08:00

26 lines
1.1 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"_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": []
}
}