1. 基本信息
POST {请求地址}/auth/getToken4Api
Body 请求参数(请联系相关人员获取参数)
{"password": "Dr5nZ**********,"rsaEncryptKey": "TKsUm280F8oXKfk***********************************************************=","username": "m******"}
2.请求参数
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » username | body | string | 是 | 用户名 | none |
| » password | body | string | 是 | 密码 | none |
| » rsaEncryptKey | body | string | 是 | 加密后的公钥 | none |
3.返回结果
返回示例
200 Response
{"code": 0,"msg": "string","data": {"access_token": "string","expires_in": 0}}
4.返回数据结构
状态码 200
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | 响应码 | none |
| » msg | string | true | none | 响应描述 | none |
| » data | object | true | none | 响应参数 | none |
| »» access_token | string | true | none | token | none |
| »» expires_in | integer | true | none | 过期时间 | 多少时间过期,分钟 |
