hermes-web-cli/json/hermes_services.json
yumoqing a315ffd5ac fix: Correct CRUD definitions according to crud-definition-spec
- Use proper root properties: tblname, title, params (not name/table/operations)
- Implement list view structure with browserfields, editexclouded, etc.
- Add status field dropdown options using uitype: code with data array
- Exclude system fields (id, timestamps) from browser and edit views
- Remove invalid operations structure that was previously used
- Follow exact JSON format specified in crud-definition-spec
2026-04-21 16:32:51 +08:00

24 lines
793 B
JSON

{
"tblname": "hermes_services",
"title": "Hermes Services",
"params": {
"sortby": ["created_at desc"],
"confidential_fields": [],
"browserfields": {
"exclouded": ["id", "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", "created_at", "updated_at"],
"subtables": []
}
}