JM-WechatMini/utils/plugin/plugin.go
2023-11-02 04:34:46 +08:00

19 lines
272 B
Go

package plugin
import (
"github.com/gin-gonic/gin"
)
const (
OnlyFuncName = "Plugin"
)
// Plugin 插件模式接口化
type Plugin interface {
// Register 注册路由
Register(group *gin.RouterGroup)
// RouterPath 用户返回注册路由
RouterPath() string
}