qoder优化。

This commit is contained in:
2026-02-12 15:45:11 +08:00
parent bc59f616fd
commit d448e48ba3
6 changed files with 131 additions and 314 deletions

View File

@@ -1,13 +1,12 @@
package utils // 示例:插件接口
import (
"go_blog/models"
"strings"
"github.com/gin-gonic/gin"
)
type Plugin interface {
OnArticleCreate(article *models.Article) // 文章创建钩子
//OnArticleCreate(article *models.Article) // 文章创建钩子
RegisterRoutes(r *gin.Engine) // 添加新路由
}