Department.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. export const Department = {
  2. "className": "Department",
  3. "fields": {
  4. "parent": {//上级
  5. "type": "Pointer",
  6. "targetClass": "Department",
  7. "required": false
  8. },
  9. "name": {//单位、组织名称
  10. "type": "String",
  11. "required": false
  12. },
  13. "code": {//标识码
  14. "type": "String",
  15. "required": false
  16. },
  17. "branch": {//主管部门
  18. "type": "String",
  19. "required": false
  20. },
  21. "address": {//所在地
  22. "type": "String",
  23. "required": false
  24. },
  25. "type": { // 单位类型
  26. "type": "String",
  27. "required": false
  28. },
  29. "hasChildren": {//办学层次
  30. "type": "Boolean",
  31. "required": false
  32. },
  33. },
  34. "classLevelPermissions": {
  35. "find": {
  36. "*": true
  37. },
  38. "get": {
  39. "*": true
  40. },
  41. "count": {
  42. "*": true
  43. },
  44. "create": {
  45. "*": true
  46. },
  47. "update": {
  48. "*": true
  49. },
  50. "delete": {
  51. "*": true
  52. },
  53. "addField": {
  54. "*": true
  55. },
  56. "protectedFields": {
  57. "*": []
  58. }
  59. }
  60. }
  61. module.exports.Department = Department