Browse Source

视频管理

master
chenyang 11 months ago
parent
commit
2fb522e628
  1. 1
      app/logic/logic.go
  2. 13
      app/plugin.go

1
app/logic/logic.go

@ -3,4 +3,5 @@ package logic
import (
_ "xgit.pub/module/cms/app/logic/category"
_ "xgit.pub/module/cms/app/logic/collect"
_ "xgit.pub/module/cms/app/logic/video"
)

13
app/plugin.go

@ -1,6 +1,12 @@
package app
import "github.com/gogf/gf/v2/net/ghttp"
import (
"github.com/gogf/gf/v2/net/ghttp"
"xgit.pub/module/cms/app/controller/category"
"xgit.pub/module/cms/app/controller/collect"
"xgit.pub/module/cms/app/controller/video"
_ "xgit.pub/module/cms/app/logic"
)
var (
Version = "0.0.1"
@ -8,5 +14,10 @@ var (
)
func RegeditPlugin(g *ghttp.RouterGroup) (err error) {
g.Bind(
video.NewV1(),
category.NewV1(),
collect.NewV1(),
)
return
}
Loading…
Cancel
Save