更新文章推送界面

This commit is contained in:
2025-10-04 20:25:05 +08:00
parent f750b91f9d
commit 2dea178fde
7 changed files with 913 additions and 271 deletions

View File

@@ -34,6 +34,10 @@ func main() {
// 3. 图片上传接口
r.POST("/api/upload/image", uploadImageHandler)
r.POST("/api/upload/cover", func(c *gin.Context) {
// 直接复用已有的上传逻辑
uploadImageHandler(c)
})
// 4. 启动服务
fmt.Println("后端服务启动成功地址http://localhost:8080")