Add Makefile, add announcement API, update FE

This commit is contained in:
BennyThink
2021-06-15 17:28:17 +08:00
parent 010e787edb
commit 3caced8035
5 changed files with 94 additions and 5 deletions

26
API.md
View File

@@ -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
}
```