feat(API): 修改文章ID类型为String并添加CORS配置

将文章ID从Integer类型改为String类型以支持更灵活的ID格式
添加CORS配置类解决跨域问题,允许所有来源访问API
This commit is contained in:
qingfeng1121
2025-10-11 13:32:41 +08:00
parent 470cf71713
commit 299c9a57ec
6 changed files with 996 additions and 5 deletions

View File

@@ -118,6 +118,7 @@ GET /api/articles/{id}
"img": "图片URL",
"createdAt": "2023-01-01T10:00:00",
"updatedAt": "2023-01-01T10:00:00",
"viewCount": 101,
"status": 1
}