Skip to content

Commit e87c60b

Browse files
Update README.md
1 parent cf47c1b commit e87c60b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ npm install
4747
| ---- | ---- |
4848
| 与TOKEN和主USER_ID对应 | 用于记录密码散列 |
4949

50-
### 4.3 外部接口
50+
## 5. api接口
5151
Simple-OAuth包含两个接口,分别是获取token和获取id接口
52-
#### 4.3.1 响应体格式
52+
### 5.1 响应体格式
5353
```json
5454
{ "statue":200,"date":"test" }
5555
```
56-
#### 4.3.2 状态码信息
56+
### 5.2 状态码信息
5757

5858
参考SimpleUser_v1.0的鉴权机制,TokenServer状态码沿用1.0版本状态码系统。
5959

@@ -65,7 +65,7 @@ Simple-OAuth包含两个接口,分别是获取token和获取id接口
6565
| 400 | 查询错误或查询结果为空 |
6666
| 401 | 执行错误,包括越权或非法请求或执行 |
6767

68-
#### 4.3.3 获取TOKEN接口
68+
### 5.3 获取TOKEN接口
6969
该接口通过客户端上传USER_ID和PASSWORD,鉴别密码正确与否,若密码和USER_ID匹配,则生成一个3600秒时效的token
7070

7171
权限:公开
@@ -115,7 +115,7 @@ http://127.0.0.1:5231/token/get?id=1&password=test
115115
}
116116
```
117117

118-
#### 4.3.4 获取USER_ID接口
118+
### 5.4 获取USER_ID接口
119119

120120
该接口通过上传token,返回注册token时绑定的USER_ID
121121

0 commit comments

Comments
 (0)