add template

This commit is contained in:
aichy126 2022-11-29 15:48:26 +08:00
parent 661d8a7f8f
commit bf41dec058
4 changed files with 29 additions and 1 deletions

View File

@ -22,4 +22,5 @@ var ProviderSetController = wire.NewSet(
NewSiteinfoController,
NewDashboardController,
NewUploadController,
NewTemplateController,
)

View File

@ -0,0 +1,11 @@
package controller
type TemplateController struct {
}
// NewTemplateController new controller
func NewTemplateController() *TemplateController {
return &TemplateController{}
}
// func (tc *TemplateController) SearchTagLike(ctx *gin.Context) {

View File

@ -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)

View File

@ -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) {
}