This commit is contained in:
2021-01-19 14:02:24 +08:00
parent b903ea33e3
commit 6a7c3d157d
+7 -5
View File
@@ -9,7 +9,7 @@ weight: 6
### 流程图
![](https://fairy8-1258530674.picsh.myqcloud.com/img/20210115094451.png)
![](https://fairy8-1258530674.picsh.myqcloud.com/img/20210119140134.png)
## 接口说明
@@ -23,12 +23,12 @@ weight: 6
method : GET
content-Type : application/x-www-form-urlencoded
token:Token
func_id:功能ID
funcId:功能ID
eg.
```http
GET /auth?token=ZW9xpZTdvamE4SWVTNmkK&func_id=10001 HTTP/1.1
GET /auth?token=ZW9xpZTdvamE4SWVTNmkK&funcId=10001 HTTP/1.1
Content-Type : application/x-www-form-urlencoded
Host: localhost: 8888
Connection: keep-alive
@@ -37,15 +37,17 @@ weight: 6
- 返回
根据http state来判断是否鉴权成功;200:鉴权通过 403:鉴权失败
funcSet: 满足条件的funcId集合,以逗号符分割
eg. 成功:
```http
HTTP/1.1 200 OK
Date: Wed, 13 Jan 2021 15:27:25 GMT
Content-Type : application/xml
Content-Length: 52
Content-Length: 20
100001,100002,100005
<root><funcSet>100001,100002,100005</funcSet></root>
```
eg. 失败: