mirror of https://gitee.com/answerdev/answer.git
add template
This commit is contained in:
parent
661d8a7f8f
commit
bf41dec058
|
@ -22,4 +22,5 @@ var ProviderSetController = wire.NewSet(
|
|||
NewSiteinfoController,
|
||||
NewDashboardController,
|
||||
NewUploadController,
|
||||
NewTemplateController,
|
||||
)
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
package controller
|
||||
|
||||
type TemplateController struct {
|
||||
}
|
||||
|
||||
// NewTemplateController new controller
|
||||
func NewTemplateController() *TemplateController {
|
||||
return &TemplateController{}
|
||||
}
|
||||
|
||||
// func (tc *TemplateController) SearchTagLike(ctx *gin.Context) {
|
|
@ -3,4 +3,4 @@ package router
|
|||
import "github.com/google/wire"
|
||||
|
||||
// ProviderSetRouter is providers.
|
||||
var ProviderSetRouter = wire.NewSet(NewAnswerAPIRouter, NewSwaggerRouter, NewStaticRouter, NewUIRouter)
|
||||
var ProviderSetRouter = wire.NewSet(NewAnswerAPIRouter, NewSwaggerRouter, NewStaticRouter, NewUIRouter, NewTemplateRouter)
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
package router
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type TemplateRouter struct {
|
||||
}
|
||||
|
||||
func NewTemplateRouter() *TemplateRouter {
|
||||
return &TemplateRouter{}
|
||||
}
|
||||
|
||||
// TemplateRouter template router
|
||||
func (a *TemplateRouter) TemplateRouter(r *gin.RouterGroup) {
|
||||
}
|
Loading…
Reference in New Issue