mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 03:15:05 +08:00
Add Makefile, add announcement API, update FE
This commit is contained in:
26
API.md
26
API.md
@@ -314,4 +314,28 @@
|
||||
"size": "15.0B"
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
|
||||
# 公告
|
||||
|
||||
## 添加公告
|
||||
|
||||
* POST `/api/announcement`, json 字段 content
|
||||
|
||||
## 获取公告
|
||||
|
||||
* GET `/api/announcmement`,接受URL参数 size、page
|
||||
|
||||
```json
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"username": "Benny",
|
||||
"date": "2021-06-15 16:28:16",
|
||||
"browser": "PostmanRuntime/7.28.0",
|
||||
"content": "hello"
|
||||
}
|
||||
],
|
||||
"count": 1
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user