loginIn.js 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. return {
  2. "category_id": 1,
  3. "desc": "根据用户主表信息,进行登录",
  4. "title": "登录",
  5. "en_alias": "loginIn",
  6. "category_type": 1,
  7. "request_method": "POST",
  8. "assemble_id": "admin_account",
  9. "connect_db": "mysql",
  10. "operate_type": 1,
  11. "search_type": 1,
  12. "search_column_id": 0,
  13. "add_type": 1,
  14. "update_type": 1,
  15. "delete_type": 1,
  16. "upload_type": 1,
  17. "request_settings": [
  18. {
  19. "default": null,
  20. "column": "username",
  21. "rules": [
  22. {
  23. "error_msg": null,
  24. "rule": "required",
  25. "type": 1,
  26. "params": null
  27. }
  28. ],
  29. "type": false,
  30. "title": "账号",
  31. "is_fixed": false,
  32. "conditions": [],
  33. "is_user": false
  34. },
  35. {
  36. "default": null,
  37. "column": "password",
  38. "rules": [
  39. {
  40. "error_msg": null,
  41. "rule": "required",
  42. "type": 1,
  43. "params": null
  44. }
  45. ],
  46. "type": false,
  47. "title": "密码",
  48. "is_fixed": false,
  49. "conditions": [],
  50. "is_user": false
  51. }
  52. ],
  53. "condition_settings": [
  54. {
  55. "db_type": 1,
  56. "column_id": "username",
  57. "children": [],
  58. "isUseExtend": false,
  59. "es_type": "where",
  60. "es_extend": [],
  61. "type": 1,
  62. "value": "username",
  63. "es_operate": "="
  64. },
  65. {
  66. "db_type": 1,
  67. "column_id": "mobile",
  68. "children": [],
  69. "isUseExtend": false,
  70. "es_type": "orWhere",
  71. "es_extend": [],
  72. "type": 1,
  73. "value": "username",
  74. "es_operate": "="
  75. }
  76. ],
  77. "sort_settings": [],
  78. "result_settings": {
  79. "type": "none",
  80. "failed": {
  81. "msg": "操作失败,请稍后再试!",
  82. "type": 1,
  83. "conditions": []
  84. },
  85. "columns": [],
  86. "success": {
  87. "msg": "恭喜你,操作成功!",
  88. "type": 2,
  89. "conditions": [
  90. {
  91. "condition": [
  92. {
  93. "con_type": "if",
  94. "params": [
  95. {
  96. "fnName": null,
  97. "operate": "true",
  98. "children": [],
  99. "isUseFn": false,
  100. "fnParams": [],
  101. "type": null,
  102. "params": "&result",
  103. "value": null
  104. }
  105. ],
  106. "manageCon": [
  107. {
  108. "fnName": "Hash::check",
  109. "interface_id": null,
  110. "success_code": 1001,
  111. "back_type": 2,
  112. "column": [
  113. "password",
  114. "&result.password"
  115. ],
  116. "failed_code": 2001,
  117. "success_msg": null,
  118. "flag_uuid": null,
  119. "failed_msg": "密码不正确!",
  120. "type": 1,
  121. "url": null,
  122. "param_type": 2
  123. },
  124. {
  125. "fnName": "App\\Plugins\\Request\\LoginIn@handler",
  126. "interface_id": null,
  127. "success_code": 1001,
  128. "columns": [],
  129. "back_type": 2,
  130. "column": [
  131. "&result"
  132. ],
  133. "failed_code": 2002,
  134. "success_msg": "恭喜你,操作成功!",
  135. "flag_uuid": null,
  136. "failed_msg": "登录失败!",
  137. "type": 1,
  138. "param_type": 2
  139. }
  140. ]
  141. },
  142. {
  143. "con_type": "else",
  144. "params": [],
  145. "manageCon": [
  146. {
  147. "fnName": null,
  148. "interface_id": null,
  149. "columns": [],
  150. "back_type": 5,
  151. "failed_code": 2003,
  152. "flag_uuid": null,
  153. "failed_msg": "用户不存在!",
  154. "type": 1,
  155. "param_type": 1
  156. }
  157. ]
  158. }
  159. ],
  160. "type": 2
  161. }
  162. ]
  163. },
  164. "is_refresh": false,
  165. "is_rollback": false,
  166. "is_use_relate": false,
  167. "column_only_one": false,
  168. "relate_interfaces": []
  169. },
  170. "conditions": [],
  171. "is_use": 1,
  172. "is_login": 0
  173. }