mirror of https://gitee.com/answerdev/answer.git
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:
commit
b4fcfa7159
|
@ -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,
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
package templaterender
|
||||
|
||||
import "github.com/google/wire"
|
||||
|
||||
// ProviderSetTemplateRenderController is template render controller providers.
|
||||
var ProviderSetTemplateRenderController = wire.NewSet(
|
||||
NewQuestionController,
|
||||
)
|
|
@ -0,0 +1,14 @@
|
|||
package templaterender
|
||||
|
||||
type QuestionController struct {
|
||||
}
|
||||
|
||||
func NewQuestionController() *QuestionController {
|
||||
return &QuestionController{}
|
||||
}
|
||||
|
||||
func (q *QuestionController) Index() {
|
||||
|
||||
}
|
||||
|
||||
func (q *QuestionController) Detail() {}
|
Loading…
Reference in New Issue