uni-id-permissions.schema.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "bsonType": "object",
  3. "required": ["permission_id", "permission_name"],
  4. "permission": {
  5. "read": "'READ_UNI_ID_PERMISSIONS' in auth.permission",
  6. "create": "'CREATE_UNI_ID_PERMISSIONS' in auth.permission",
  7. "update": "'UPDATE_UNI_ID_PERMISSIONS' in auth.permission",
  8. "delete": "'DELETE_UNI_ID_PERMISSIONS' in auth.permission"
  9. },
  10. "properties": {
  11. "_id": {
  12. "description": "存储文档 ID,系统自动生成"
  13. },
  14. "comment": {
  15. "bsonType": "string",
  16. "component": {
  17. "name": "textarea"
  18. },
  19. "description": "备注",
  20. "label": "备注",
  21. "title": "备注",
  22. "trim": "both"
  23. },
  24. "create_date": {
  25. "bsonType": "timestamp",
  26. "description": "创建时间",
  27. "forceDefaultValue": {
  28. "$env": "now"
  29. }
  30. },
  31. "permission_id": {
  32. "bsonType": "string",
  33. "component": {
  34. "name": "input"
  35. },
  36. "description": "权限唯一标识,不可修改,不允许重复",
  37. "label": "权限标识",
  38. "title": "权限ID",
  39. "trim": "both"
  40. },
  41. "permission_name": {
  42. "bsonType": "string",
  43. "component": {
  44. "name": "input"
  45. },
  46. "description": "权限名称",
  47. "label": "权限名称",
  48. "title": "权限名称",
  49. "trim": "both"
  50. }
  51. }
  52. }