wangpengfei
2023-08-25 25c573d55986e02cf5f70cc3868e2b94a4be98e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package plugin
 
import (
    "github.com/gin-gonic/gin"
)
 
const (
    OnlyFuncName = "Plugin"
)
 
// Plugin 插件模式接口化
type Plugin interface {
    // Register 注册路由
    Register(group *gin.RouterGroup)
 
    // RouterPath 用户返回注册路由
    RouterPath() string
}