add api for login & checklogin
This commit is contained in:
+38
@@ -61,6 +61,44 @@ data:
|
||||
}
|
||||
```
|
||||
|
||||
## 账号登陆
|
||||
|
||||
### 微信小程序登陆 `POST /login` OK
|
||||
|
||||
- Request
|
||||
|
||||
```json
|
||||
{
|
||||
"code": "wechat_login_code"
|
||||
}
|
||||
```
|
||||
|
||||
- Response
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"token": "your_token"
|
||||
}
|
||||
```
|
||||
|
||||
### 检查 token 是否登陆 `GET /checklogin?token={token}` OK
|
||||
|
||||
```json
|
||||
{
|
||||
"islogin": true
|
||||
}
|
||||
```
|
||||
|
||||
- Response
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"token": "your_token"
|
||||
}
|
||||
```
|
||||
|
||||
## 用户页面
|
||||
|
||||
### 个人信息 `GET /user/info`
|
||||
|
||||
Reference in New Issue
Block a user