html表单 api,Form表单登录API

**简要描述:**

- 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 |

**备注**

- 更多返回错误代码请看首页的错误代码描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值