后端完成博客管理接口

This commit is contained in:
2024-09-01 14:37:21 +08:00
parent 55b631cd9c
commit d533bd528d
4 changed files with 67 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ class GetBlogs extends API {
public async onRequset(data: any, res: any) {
// const { uuid } = data._jwt;
let resourcesRes = await MySQLConnection.execute("SELECT * FROM blog");
let resourcesRes = await MySQLConnection.execute("SELECT * FROM blog ORDER BY id DESC");
if (!resourcesRes) {
return res.json(ServerStdResponse.SERVER_ERROR);
}