**简要描述:** - Form表单登录 **请求URL:** - `http://localhost:9999/auth/auth/form ` **请求方式:** - POST **head信息:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |deviceId |是 |string | 服务Id(唯一标记) | **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |username |是 |string |用户名 | |password |是 |string | 密码 | |imageCode |是 |string | 图片验证码 | **返回示例** ``` { "access_token": "cd7f81e9-1298-4511-a560-ecdcc2edc6ca", "token_type": "bearer", "refresh_token": "a4cf804b-af50-4863-bc39-b17083f3936d", "expires_in": 2391, "scope": "app", "userType": "2", "makeBy": "pro-cloud", "userId": 1 } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |access_token |String |token | |token_type |String |bearer类型token | |refresh_token |String |刷新token | |expires_in |Long |过期时间 | |scope |String |scope | |userType |String |用户类型:0:管理员 1:教师 2:学生 | |makeBy |String |制作token者 | |userId |String |该用户的id | **备注** - 更多返回错误代码请看首页的错误代码描述