登录

请求URL:

  • /admin/base/login

请求方式:

  • POST

参数:

参数名 必选 类型 说明
username string
password string

返回示例

{
    "code": 200,
    "data": {
        "authKey": "c5dc4eb373aba10720e4558c12a605de",
        "sessionId": "h0tthep81kpdc7fo9gtfq4n12u",
        "userInfo": {
            "id": 1,
            "username": "admin",
            "password": "163d3a3901da3ad652e7aa32bdde6009",
            "remark": "",
            "create_time": 1487217060,
            "realname": "超级管理员",
            "mobile": null,
            "sex": null,
            "structure_id": 0,
            "post_id": 45,
            "is_online": 1,
            "isdelete": 0,
            "status": 1,
            "update_time": null,
            "structure_names": [],
            "structure_ids": [
                "0"
            ],
            "group_id": "",
            "group_title": ""
        },
        "authList": [],
        "menusList": [
            {
                "id": 52,
                "title": "系统设置",
                "url": "",
                "icon": "set",
                "menu_type": 1,
                "sort": 5,
                "status": 1,
                "rule_id": 10,
                "module": "Administrative",
                "menu": "",
                "show_location": 1,
                "child": [
                    {
                        "id": 53,
                        "title": "系统配置",
                        "url": "",
                        "icon": "",
                        "menu_type": 1,
                        "sort": 2,
                        "status": 1,
                        "rule_id": 61,
                        "module": "Administrative",
                        "menu": "",
                        "show_location": 1,
                        "child": [
                            {
                                "id": 54,
                                "title": "菜单管理",
                                "url": "",
                                "icon": "",
                                "menu_type": 1,
                                "sort": 3,
                                "status": 1,
                                "rule_id": 21,
                                "module": "Administrative",
                                "menu": "",
                                "show_location": 1,
                                "selected": false,
                                "level": 3
                            },
                            {
                                "id": 56,
                                "title": "权限规则",
                                "url": "",
                                "icon": "",
                                "menu_type": 1,
                                "sort": 5,
                                "status": 1,
                                "rule_id": 13,
                                "module": "Administrative",
                                "menu": "",
                                "show_location": 1,
                                "selected": false,
                                "level": 3
                            }
                        ],
                        "selected": false,
                        "level": 2
                    },
                    {
                        "id": 57,
                        "title": "组织架构",
                        "url": "",
                        "icon": "",
                        "menu_type": 1,
                        "sort": 6,
                        "status": 1,
                        "rule_id": 63,
                        "module": "Administrative",
                        "menu": "",
                        "show_location": 1,
                        "selected": false,
                        "level": 2
                    },
                    {
                        "id": 59,
                        "title": "部门管理",
                        "url": "",
                        "icon": "",
                        "menu_type": 1,
                        "sort": 8,
                        "status": 1,
                        "rule_id": 39,
                        "module": "Administrative",
                        "menu": "",
                        "show_location": 1,
                        "selected": false,
                        "level": 2
                    },
                    {
                        "id": 60,
                        "title": "用户组管理",
                        "url": "",
                        "icon": "",
                        "menu_type": 1,
                        "sort": 9,
                        "status": 1,
                        "rule_id": 47,
                        "module": "Administrative",
                        "menu": "",
                        "show_location": 1,
                        "selected": false,
                        "level": 2
                    },
                    {
                        "id": 61,
                        "title": "账户管理",
                        "url": "",
                        "icon": "",
                        "menu_type": 1,
                        "sort": 10,
                        "status": 1,
                        "rule_id": 62,
                        "module": "Administrative",
                        "menu": "",
                        "show_location": 1,
                        "selected": false,
                        "level": 2
                    },
                    {
                        "id": 62,
                        "title": "账户列表",
                        "url": "",
                        "icon": "",
                        "menu_type": 1,
                        "sort": 11,
                        "status": 1,
                        "rule_id": 55,
                        "module": "Administrative",
                        "menu": "",
                        "show_location": 1,
                        "selected": false,
                        "level": 2
                    }
                ],
                "selected": false,
                "level": 1
            },
            {
                "id": 100,
                "title": "项目管理",
                "url": "",
                "icon": "",
                "menu_type": 1,
                "sort": 12,
                "status": 1,
                "rule_id": 1000,
                "module": null,
                "menu": null,
                "show_location": 1,
                "child": [
                    {
                        "id": 101,
                        "title": "项目列表",
                        "url": "",
                        "icon": "",
                        "menu_type": 1,
                        "sort": 13,
                        "status": 1,
                        "rule_id": 1003,
                        "module": null,
                        "menu": null,
                        "show_location": 1,
                        "selected": false,
                        "level": 2
                    },
                    {
                        "id": 102,
                        "title": "项目归档列表",
                        "url": "",
                        "icon": "",
                        "menu_type": 1,
                        "sort": 14,
                        "status": 1,
                        "rule_id": 1005,
                        "module": null,
                        "menu": null,
                        "show_location": 1,
                        "selected": false,
                        "level": 2
                    }
                ],
                "selected": false,
                "level": 1
            },
            {
                "id": 200,
                "title": "任务管理",
                "url": "",
                "icon": "",
                "menu_type": 1,
                "sort": 15,
                "status": 1,
                "rule_id": 2000,
                "module": null,
                "menu": null,
                "show_location": 1,
                "child": [
                    {
                        "id": 201,
                        "title": "任务列表",
                        "url": "",
                        "icon": "",
                        "menu_type": 1,
                        "sort": 16,
                        "status": 1,
                        "rule_id": 2003,
                        "module": null,
                        "menu": null,
                        "show_location": 1,
                        "selected": false,
                        "level": 2
                    },
                    {
                        "id": 202,
                        "title": "任务日历",
                        "url": "",
                        "icon": "",
                        "menu_type": 1,
                        "sort": 17,
                        "status": 1,
                        "rule_id": 2006,
                        "module": null,
                        "menu": null,
                        "show_location": 1,
                        "selected": false,
                        "level": 2
                    }
                ],
                "selected": false,
                "level": 1
            }
        ]
    },
    "error": ""
}