You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
272 B

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