add routers themes

This commit is contained in:
张超
2025-04-09 16:56:05 +08:00
parent 577cd10161
commit 33cb413a12
14 changed files with 275 additions and 118 deletions

View File

@@ -1,4 +1,11 @@
// 示例:插件接口
package utils // 示例:插件接口
import (
"go_blog/models"
"strings"
"github.com/gin-gonic/gin"
)
type Plugin interface {
OnArticleCreate(article *models.Article) // 文章创建钩子
RegisterRoutes(r *gin.Engine) // 添加新路由
@@ -11,4 +18,4 @@ func handleThemeUpload(c *gin.Context) {
c.AbortWithStatus(400)
}
// 解压到临时目录并校验文件结构
}
}