Documentation ¶
Index ¶
- Variables
- func Paginator(page, pageSize int, nums int64) *schema.Paginator
- type TemplateRenderController
- 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.QuestionInfo, 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 *service.QuestionService, userService *service.UserService, tagService *tag.TagService, answerService *service.AnswerService, commentService *comment.CommentService, siteInfoService siteinfo_common.SiteInfoCommonService, questionRepo questioncommon.QuestionRepo, ) *TemplateRenderController
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.QuestionInfo, 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.