123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- return {
- "category_id": 1,
- "desc": "根据用户主表信息,进行登录",
- "title": "登录",
- "en_alias": "loginIn",
- "category_type": 1,
- "request_method": "POST",
- "assemble_id": "admin_account",
- "connect_db": "mysql",
- "operate_type": 1,
- "search_type": 1,
- "search_column_id": 0,
- "add_type": 1,
- "update_type": 1,
- "delete_type": 1,
- "upload_type": 1,
- "request_settings": [
- {
- "default": null,
- "column": "username",
- "rules": [
- {
- "error_msg": null,
- "rule": "required",
- "type": 1,
- "params": null
- }
- ],
- "type": false,
- "title": "账号",
- "is_fixed": false,
- "conditions": [],
- "is_user": false
- },
- {
- "default": null,
- "column": "password",
- "rules": [
- {
- "error_msg": null,
- "rule": "required",
- "type": 1,
- "params": null
- }
- ],
- "type": false,
- "title": "密码",
- "is_fixed": false,
- "conditions": [],
- "is_user": false
- }
- ],
- "condition_settings": [
- {
- "db_type": 1,
- "column_id": "username",
- "children": [],
- "isUseExtend": false,
- "es_type": "where",
- "es_extend": [],
- "type": 1,
- "value": "username",
- "es_operate": "="
- },
- {
- "db_type": 1,
- "column_id": "mobile",
- "children": [],
- "isUseExtend": false,
- "es_type": "orWhere",
- "es_extend": [],
- "type": 1,
- "value": "username",
- "es_operate": "="
- }
- ],
- "sort_settings": [],
- "result_settings": {
- "type": "none",
- "failed": {
- "msg": "操作失败,请稍后再试!",
- "type": 1,
- "conditions": []
- },
- "columns": [],
- "success": {
- "msg": "恭喜你,操作成功!",
- "type": 2,
- "conditions": [
- {
- "condition": [
- {
- "con_type": "if",
- "params": [
- {
- "fnName": null,
- "operate": "true",
- "children": [],
- "isUseFn": false,
- "fnParams": [],
- "type": null,
- "params": "&result",
- "value": null
- }
- ],
- "manageCon": [
- {
- "fnName": "Hash::check",
- "interface_id": null,
- "success_code": 1001,
- "back_type": 2,
- "column": [
- "password",
- "&result.password"
- ],
- "failed_code": 2001,
- "success_msg": null,
- "flag_uuid": null,
- "failed_msg": "密码不正确!",
- "type": 1,
- "url": null,
- "param_type": 2
- },
- {
- "fnName": "App\\Plugins\\Request\\LoginIn@handler",
- "interface_id": null,
- "success_code": 1001,
- "columns": [],
- "back_type": 2,
- "column": [
- "&result"
- ],
- "failed_code": 2002,
- "success_msg": "恭喜你,操作成功!",
- "flag_uuid": null,
- "failed_msg": "登录失败!",
- "type": 1,
- "param_type": 2
- }
- ]
- },
- {
- "con_type": "else",
- "params": [],
- "manageCon": [
- {
- "fnName": null,
- "interface_id": null,
- "columns": [],
- "back_type": 5,
- "failed_code": 2003,
- "flag_uuid": null,
- "failed_msg": "用户不存在!",
- "type": 1,
- "param_type": 1
- }
- ]
- }
- ],
- "type": 2
- }
- ]
- },
- "is_refresh": false,
- "is_rollback": false,
- "is_use_relate": false,
- "column_only_one": false,
- "relate_interfaces": []
- },
- "conditions": [],
- "is_use": 1,
- "is_login": 0
- }
|