简要描述:提供通过账号编码,手机号,邮箱登录。若该用户有多个部门,则会选择部门后登录。

接口版本:

版本号 制定人 制定日期 修订日期
1.0 白梦浩 2022-08-19 2022-08-19

请求URL:

  • /je/rbac/cloud/login/accountLogin

请求方式:

  • POST

请求头:

参数名 是否必须 类型 说明
Content-Type string 请求类型: application/json
authorization string 请求内容签名

请求参数:

参数名 是否必须 类型 参数格式 说明
account string 张天 账号名称
password string xxx 密码
deptId string xxx 部门主键ID
device string pc 登录方式

返回示例:

正确时返回:

1"code": "1000",
"data": "b0359917-506d-4247-9d15-8fd600bd120f",
"message": "登录成功!",
"success": true,
"rows": null,
"totalCount": null2)
code: "5001"
data: [{name: "北京项目组", id: "6geGROlWzlEeIR5nBBY"}, {name: "平台研发部", id: "dSxGZiOYSPQubZSW6Pm"},…]
message: "请选择部门!"
rows: null
success: true
totalCount: null

错误时返回:

{
"errcode": 500,
"errmsg": "invalid appid"
}

返回参数说明:

参数名 类型 说明
group_level int 用户组id,1:超级管理员;2:普通用户

备注:

  • 更多返回错误代码请看首页的错误代码描述
最后编辑: 于春辉  文档更新时间: 2024-07-26 14:15   作者:于春辉