You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.3 KiB
75 lines
2.3 KiB
4 weeks ago
|
{
|
||
|
"swagger": "2.0",
|
||
|
"info": {
|
||
|
"contact": {}
|
||
|
},
|
||
|
"paths": {
|
||
|
"/api/v1/login/register": {
|
||
|
"post": {
|
||
|
"description": "该接口用于用户通过手机号和密码进行登录。如果登录失败,系统会记录错误信息并限制登录次数。",
|
||
|
"consumes": [
|
||
|
"application/json"
|
||
|
],
|
||
|
"produces": [
|
||
|
"application/json"
|
||
|
],
|
||
|
"tags": [
|
||
|
"login"
|
||
|
],
|
||
|
"summary": "用户登录",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"type": "string",
|
||
|
"description": "用户手机号",
|
||
|
"name": "mobile",
|
||
|
"in": "query",
|
||
|
"required": true
|
||
|
},
|
||
|
{
|
||
|
"type": "string",
|
||
|
"description": "用户密码",
|
||
|
"name": "password",
|
||
|
"in": "query",
|
||
|
"required": true
|
||
|
}
|
||
|
],
|
||
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "登录成功返回Token",
|
||
|
"schema": {
|
||
|
"$ref": "#/definitions/login.SsoLoginResponse"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"definitions": {
|
||
|
"login.SsoLoginResponse": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"code": {
|
||
|
"description": "返回Code 200 成功 其他是失败",
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"count": {
|
||
|
"description": "条数",
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"data": {
|
||
|
"description": "数据列表",
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"token": {
|
||
|
"description": "返回token",
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"message": {
|
||
|
"description": "返回信息"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|