叁玖-saas


用户登录接口

简要描述
  • 用户登录接口
请求URL
  • /api/user/login
请求方式
  • POST
参数
参数名 必选 类型 说明
tel string 登录用的手机号
password string 密码
返回示例
{
    "code": 200,
    "msg": "OK",
    "data": {
        "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzYW5qaXUiLCJhdWQiOiIiLCJpYXQiOjE2NTY0ODI3MzQsIm5iZiI6MTY1NjQ4MjczNCwiZXhwIjoxNjU2NTY5MTM0LCJ1aWQiOnsiaWQiOjIsImNvbXBhbnlfaWQiOjU2ODg2ODM3NywiZGVwYXJ0X2lkIjowLCJyb2xlX2lkIjoxLCJuYW1lIjoiemJxIiwibmlja25hbWUiOiJcdTk2NDZcdThmZDBcdTkwMWFcdTZkNGJcdThiZDUiLCJ0ZWwiOiIxNTUyMjEwOTg4NyIsInBhc3N3b3JkIjoiN2Y0N2I4MTI5YWM4NTJhN2IwMjcwNmRmYmUwNzAxMTUiLCJjb2RlIjoiIiwic2V4IjowLCJiaXJ0aGRheSI6IjAiLCJjYXJkX2NvZGUiOiIiLCJjYXJkX2ZhY2UiOiIiLCJjYXJkX2JhY2siOiIiLCJhdmF0YXIiOiIiLCJjaXR5IjoiIiwicG9zaXRpb25faWQiOjAsInN0YXR1cyI6MSwicmVtYXJrIjoiIiwibGFzdF9sb2dpbl90aW1lIjowLCJpZl9tYW5hZ2VyIjowLCJpZl9kZWxldGVkIjowLCJjcmVhdGVkX2lkIjowLCJ1cGRhdGVkX2lkIjowLCJjcmVhdGVkX2F0IjoiMjAyMi0wNi0yOSAxNDowNTozNCIsInVwZGF0ZWRfYXQiOiIyMDIyLTA2LTI5IDE0OjA1OjM0IiwiY3JlYXRlZF9hdF95bWQiOiIiLCJ1cGRhdGVkX2F0X3ltZCI6IiIsInJvbGVfcGVybWlzc2lvbiI6eyJpZCI6MSwiY29tcGFueV9pZCI6NTY4ODY4Mzc3LCJyb2xlX25hbWUiOiJcdThkMjJcdTUyYTEiLCJzY29wZSI6MiwiZ3JvdXBfaWQiOiIxLDIsMyw0IiwiZGlzcGF0Y2hfc2NvcGUiOjEsImRpc3BhdGNoX2NsaWVudF9pZCI6IjEiLCJkaXNwYXRjaF9zdGFydF9wcm92aW5jZSI6IjEiLCJkaXNwYXRjaF9lbmRfcHJvdmluY2UiOiIxIiwicm9sZV9yYW5nZSI6Ilt7XCJvcmRlclwiOiAxLCBcIm9yZGVyLWxpc3RcIjogMX1dIiwibWVtbyI6IiIsImlmX2RlbGV0ZWQiOjEsImNyZWF0ZWRfaWQiOjAsInVwZGF0ZWRfaWQiOjEsImNyZWF0ZWRfYXQiOiIyMDIyLTA2LTI4IDE1OjAyOjAwIiwidXBkYXRlZF9hdCI6IjIwMjItMDYtMjggMTc6NDI6MDAiLCJjcmVhdGVkX2F0X3ltZCI6IjIwMjItMDYtMjgiLCJ1cGRhdGVkX2F0X3ltZCI6IjIwMjItMDYtMjgifX19.t7nI9ByO3Bg9dZSWUhb9CCohZ_FkA5qA99JTFr3KIsE",
        "userId": 2,
        "name": "zbq",
        "companyId": 568868377,
        "rolePermission": {
            "id": 1,
            "company_id": 568868377,
            "role_name": "财务",
            "scope": 2,
            "group_id": "1,2,3,4",
            "dispatch_scope": 1,
            "dispatch_client_id": "1",
            "dispatch_start_province": "1",
            "dispatch_end_province": "1",
            "role_range": "[{\"order\": 1, \"order-list\": 1}]",
            "memo": "",
            "if_deleted": 1,
            "created_id": 0,
            "updated_id": 1,
            "created_at": "2022-06-28 15:02:00",
            "updated_at": "2022-06-28 17:42:00",
            "created_at_ymd": "2022-06-28",
            "updated_at_ymd": "2022-06-28"
        }
    }
}
返回参数说明
参数名 类型 说明
code int 200 正常 非200都不正常
token string jwt的token
userId string 用户id
name string 用户姓名
company_id string 公司id(也是陆运通中的货主id)
rolePermission json 角色权限
role_name string 角色名称
rolePermission string 角色权限
scope int 权限数据范围0 个人 1 所属部门 2多个部门
group_id int 数据权限为部门时 部门id (部门id为999 为公司数据都可以查看)
dispatch_scope int 调度权限范围: 0 全部订单 1.指定范围 (包含客户 始发地 目的地 范围)
dispatch_client_id string 调度权限-指定范围客户 id
dispatch_start_province int 调度权限-始发地省 id
dispatch_end_province int 调度权限-目的地省 id
role_range json 角色对应权限
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML