Documentation ¶
Index ¶
- Variables
- func Paginator(page, pageSize int, nums int64) *schema.Paginator
- type TemplateRenderController
- func (t *TemplateRenderController) AnswerDetail(ctx context.Context, id string) (*schema.AnswerInfo, error)
- func (t *TemplateRenderController) AnswerList(ctx context.Context, req *schema.AnswerListReq) ([]*schema.AnswerInfo, int64, error)
- func (t *TemplateRenderController) CommentList(ctx context.Context, objectIDs []string) (comments map[string][]*schema.GetCommentResp, err error)
- func (t *TemplateRenderController) Index(ctx *gin.Context, req *schema.QuestionPageReq) ([]*schema.QuestionPageResp, int64, error)
- func (t *TemplateRenderController) QuestionDetail(ctx *gin.Context, id string) (resp *schema.QuestionInfoResp, err error)
- func (t *TemplateRenderController) Sitemap(ctx *gin.Context)
- func (t *TemplateRenderController) SitemapPage(ctx *gin.Context, page int) error
- func (q *TemplateRenderController) TagInfo(ctx context.Context, req *schema.GetTamplateTagInfoReq) (resp *schema.GetTagResp, questionList []*schema.QuestionPageResp, ...)
- func (q *TemplateRenderController) TagList(ctx context.Context, req *schema.GetTagWithPageReq) (resp *pager.PageModel, err error)
- func (q *TemplateRenderController) UserInfo(ctx context.Context, req *schema.GetOtherUserInfoByUsernameReq) (resp *schema.GetOtherUserInfoByUsernameResp, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSetTemplateRenderController = wire.NewSet( NewTemplateRenderController, )
ProviderSetTemplateRenderController is template render controller providers.
Functions ¶
Types ¶
type TemplateRenderController ¶
type TemplateRenderController struct {
// contains filtered or unexported fields
}
func NewTemplateRenderController ¶
func NewTemplateRenderController( questionService *content.QuestionService, userService *content.UserService, tagService *tag.TagService, answerService *content.AnswerService, commentService *comment.CommentService, siteInfoService siteinfo_common.SiteInfoCommonService, questionRepo questioncommon.QuestionRepo, ) *TemplateRenderController
func (*TemplateRenderController) AnswerDetail ¶ added in v1.3.1
func (t *TemplateRenderController) AnswerDetail(ctx context.Context, id string) (*schema.AnswerInfo, error)
func (*TemplateRenderController) AnswerList ¶
func (t *TemplateRenderController) AnswerList(ctx context.Context, req *schema.AnswerListReq) ([]*schema.AnswerInfo, int64, error)
func (*TemplateRenderController) CommentList ¶
func (t *TemplateRenderController) CommentList( ctx context.Context, objectIDs []string, ) ( comments map[string][]*schema.GetCommentResp, err error, )
func (*TemplateRenderController) Index ¶
func (t *TemplateRenderController) Index(ctx *gin.Context, req *schema.QuestionPageReq) ([]*schema.QuestionPageResp, int64, error)
func (*TemplateRenderController) QuestionDetail ¶
func (t *TemplateRenderController) QuestionDetail(ctx *gin.Context, id string) (resp *schema.QuestionInfoResp, err error)
func (*TemplateRenderController) Sitemap ¶
func (t *TemplateRenderController) Sitemap(ctx *gin.Context)
func (*TemplateRenderController) SitemapPage ¶
func (t *TemplateRenderController) SitemapPage(ctx *gin.Context, page int) error
func (*TemplateRenderController) TagInfo ¶
func (q *TemplateRenderController) TagInfo(ctx context.Context, req *schema.GetTamplateTagInfoReq) (resp *schema.GetTagResp, questionList []*schema.QuestionPageResp, questionCount int64, err error)
func (*TemplateRenderController) TagList ¶
func (q *TemplateRenderController) TagList(ctx context.Context, req *schema.GetTagWithPageReq) (resp *pager.PageModel, err error)
func (*TemplateRenderController) UserInfo ¶
func (q *TemplateRenderController) UserInfo(ctx context.Context, req *schema.GetOtherUserInfoByUsernameReq) (resp *schema.GetOtherUserInfoByUsernameResp, err error)
Click to show internal directories.
Click to hide internal directories.