選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

116 行
2.9 KiB

  1. {
  2. "meta": {
  3. "$_GET": [
  4. {
  5. "type": "text",
  6. "name": "sort"
  7. },
  8. {
  9. "type": "text",
  10. "name": "dir"
  11. },
  12. {
  13. "type": "text",
  14. "name": "filter"
  15. }
  16. ]
  17. },
  18. "exec": {
  19. "steps": {
  20. "name": "query",
  21. "module": "dbconnector",
  22. "action": "select",
  23. "options": {
  24. "connection": "authdb",
  25. "sql": {
  26. "type": "select",
  27. "columns": [
  28. {
  29. "table": "roles",
  30. "column": "id"
  31. },
  32. {
  33. "table": "roles",
  34. "column": "name"
  35. }
  36. ],
  37. "params": [],
  38. "table": {
  39. "name": "roles"
  40. },
  41. "primary": "id",
  42. "joins": [],
  43. "wheres": {
  44. "condition": "OR",
  45. "rules": [
  46. {
  47. "id": "roles.isDepartment",
  48. "field": "roles.isDepartment",
  49. "type": "boolean",
  50. "operator": "not_equal",
  51. "value": true,
  52. "data": {
  53. "table": "roles",
  54. "column": "isDepartment",
  55. "type": "boolean",
  56. "columnObj": {
  57. "type": "boolean",
  58. "primary": false,
  59. "unique": false,
  60. "nullable": true,
  61. "name": "isDepartment"
  62. }
  63. },
  64. "operation": "<>",
  65. "table": "roles"
  66. },
  67. {
  68. "id": "roles.isDepartment",
  69. "field": "roles.isDepartment",
  70. "type": "boolean",
  71. "operator": "is_null",
  72. "value": null,
  73. "data": {
  74. "table": "roles",
  75. "column": "isDepartment",
  76. "type": "boolean",
  77. "columnObj": {
  78. "type": "boolean",
  79. "primary": false,
  80. "unique": false,
  81. "nullable": true,
  82. "name": "isDepartment"
  83. }
  84. },
  85. "operation": "IS NULL",
  86. "table": "roles"
  87. }
  88. ],
  89. "conditional": null,
  90. "valid": true
  91. },
  92. "query": "select `id`, `name` from `roles` where `roles`.`isDepartment` <> ? or `roles`.`isDepartment` is null order by `name` ASC",
  93. "orders": [
  94. {
  95. "table": "roles",
  96. "column": "name",
  97. "direction": "ASC"
  98. }
  99. ]
  100. }
  101. },
  102. "output": true,
  103. "meta": [
  104. {
  105. "type": "number",
  106. "name": "id"
  107. },
  108. {
  109. "type": "text",
  110. "name": "name"
  111. }
  112. ],
  113. "outputType": "array"
  114. }
  115. }
  116. }