统一认证(密码方式)登录接口
开发中POST
/loginByPassword请求参数
Body 参数application/json
userName
string
电话号码
password
string
密码
示例
{
"password": "123456",
"userName": "10000000000"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
success
boolean
必需
message
string
必需
code
integer
必需
timestamp
integer
必需
result
object
必需
token
string
必需
expiresIn
integer
必需
type
integer
必需
appId
null
必需
tenantId
string
必需
示例
{
"success": true,
"message": "操作成功!",
"code": 200,
"timestamp": 1686296805111,
"result": {
"token": "jcSXRJfV3fsDFMQS944mKZy0xu5dcDEGNeWnG0heE7MMEtSrIqttMFbIjqWK",
"expiresIn": 7199,
"type": 0,
"appId": null,
"tenantId": "1"
}
}
修改于 1 年前