Merge branch 'feat/0.6.0/seo' of git.backyard.segmentfault.com:opensource/answer into feat/0.6.0/seo

This commit is contained in:
aichy126 2022-11-29 18:02:48 +08:00
commit b4fcfa7159
3 changed files with 24 additions and 0 deletions

View File

@ -12,6 +12,7 @@ import (
"github.com/answerdev/answer/internal/base/server"
"github.com/answerdev/answer/internal/base/translator"
"github.com/answerdev/answer/internal/controller"
"github.com/answerdev/answer/internal/controller/template_render"
"github.com/answerdev/answer/internal/controller_backyard"
"github.com/answerdev/answer/internal/repo"
"github.com/answerdev/answer/internal/router"
@ -37,6 +38,7 @@ func initApplication(
router.ProviderSetRouter,
controller.ProviderSetController,
controller_backyard.ProviderSetController,
templaterender.ProviderSetTemplateRenderController,
service.ProviderSetService,
repo.ProviderSetRepo,
translator.ProviderSet,

View File

@ -0,0 +1,8 @@
package templaterender
import "github.com/google/wire"
// ProviderSetTemplateRenderController is template render controller providers.
var ProviderSetTemplateRenderController = wire.NewSet(
NewQuestionController,
)

View File

@ -0,0 +1,14 @@
package templaterender
type QuestionController struct {
}
func NewQuestionController() *QuestionController {
return &QuestionController{}
}
func (q *QuestionController) Index() {
}
func (q *QuestionController) Detail() {}