api

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveHandler

type ArchiveHandler struct {
	PostService   service.PostService
	PostAssembler assembler.PostAssembler
}

func NewArchiveHandler

func NewArchiveHandler(postService service.PostService, postAssemeber assembler.PostAssembler) *ArchiveHandler

func (*ArchiveHandler) ListMonthArchives

func (a *ArchiveHandler) ListMonthArchives(ctx *gin.Context) (interface{}, error)

func (*ArchiveHandler) ListYearArchives

func (a *ArchiveHandler) ListYearArchives(ctx *gin.Context) (interface{}, error)

type CategoryHandler

type CategoryHandler struct {
	PostService            service.PostService
	CategoryService        service.CategoryService
	CategoryAuthentication authentication.CategoryAuthentication
	PostAssembler          assembler.PostAssembler
}

func NewCategoryHandler

func NewCategoryHandler(postService service.PostService, categoryService service.CategoryService, categoryAuthentication *authentication.CategoryAuthentication, postAssembler assembler.PostAssembler) *CategoryHandler

func (*CategoryHandler) ListCategories

func (c *CategoryHandler) ListCategories(ctx *gin.Context) (interface{}, error)

func (*CategoryHandler) ListPosts

func (c *CategoryHandler) ListPosts(ctx *gin.Context) (interface{}, error)

type CommentHandler added in v1.1.4

type CommentHandler struct {
	BaseCommentService service.BaseCommentService
}

func NewCommentHandler added in v1.1.4

func NewCommentHandler(baseCommentService service.BaseCommentService) *CommentHandler

func (*CommentHandler) Like added in v1.1.4

func (c *CommentHandler) Like(ctx *gin.Context) (interface{}, error)

type JournalHandler

type JournalHandler struct {
	JournalService          service.JournalService
	JournalCommentService   service.JournalCommentService
	OptionService           service.ClientOptionService
	JournalCommentAssembler assembler.JournalCommentAssembler
}

func NewJournalHandler

func NewJournalHandler(
	journalService service.JournalService,
	journalCommentService service.JournalCommentService,
	optionService service.ClientOptionService,
	journalCommentAssembler assembler.JournalCommentAssembler,
) *JournalHandler

func (*JournalHandler) CreateComment

func (j *JournalHandler) CreateComment(ctx *gin.Context) (interface{}, error)

func (*JournalHandler) GetJournal

func (j *JournalHandler) GetJournal(ctx *gin.Context) (interface{}, error)

func (*JournalHandler) Like

func (j *JournalHandler) Like(ctx *gin.Context) (interface{}, error)

func (*JournalHandler) ListChildren

func (j *JournalHandler) ListChildren(ctx *gin.Context) (interface{}, error)

func (*JournalHandler) ListComment

func (j *JournalHandler) ListComment(ctx *gin.Context) (interface{}, error)

func (*JournalHandler) ListCommentTree

func (j *JournalHandler) ListCommentTree(ctx *gin.Context) (interface{}, error)

func (*JournalHandler) ListJournal

func (j *JournalHandler) ListJournal(ctx *gin.Context) (interface{}, error)

func (*JournalHandler) ListTopComment

func (j *JournalHandler) ListTopComment(ctx *gin.Context) (interface{}, error)

type LinkHandler

type LinkHandler struct {
	LinkService service.LinkService
}

func NewLinkHandler

func NewLinkHandler(linkService service.LinkService) *LinkHandler

func (*LinkHandler) LinkTeamVO

func (l *LinkHandler) LinkTeamVO(ctx *gin.Context) (interface{}, error)
func (l *LinkHandler) ListLinks(ctx *gin.Context) (interface{}, error)

type OptionHandler

type OptionHandler struct {
	OptionService service.OptionService
}

func NewOptionHandler

func NewOptionHandler(
	optionService service.OptionService,
) *OptionHandler

func (*OptionHandler) Comment

func (o *OptionHandler) Comment(ctx *gin.Context) (interface{}, error)

type PhotoHandler added in v1.0.8

type PhotoHandler struct {
	PhotoService service.PhotoService
}

func NewPhotoHandler added in v1.0.8

func NewPhotoHandler(photoService service.PhotoService) *PhotoHandler

func (*PhotoHandler) Like added in v1.0.8

func (p *PhotoHandler) Like(ctx *gin.Context) (interface{}, error)

type PostHandler

type PostHandler struct {
	OptionService        service.OptionService
	PostService          service.PostService
	PostCommentService   service.PostCommentService
	PostCommentAssembler assembler.PostCommentAssembler
}

func NewPostHandler

func NewPostHandler(
	optionService service.OptionService,
	postService service.PostService,
	postCommentService service.PostCommentService,
	postCommentAssembler assembler.PostCommentAssembler,
) *PostHandler

func (*PostHandler) CreateComment

func (p *PostHandler) CreateComment(ctx *gin.Context) (interface{}, error)

func (*PostHandler) Like

func (p *PostHandler) Like(ctx *gin.Context) (interface{}, error)

func (*PostHandler) ListChildren

func (p *PostHandler) ListChildren(ctx *gin.Context) (interface{}, error)

func (*PostHandler) ListComment

func (p *PostHandler) ListComment(ctx *gin.Context) (interface{}, error)

func (*PostHandler) ListCommentTree

func (p *PostHandler) ListCommentTree(ctx *gin.Context) (interface{}, error)

func (*PostHandler) ListTopComment

func (p *PostHandler) ListTopComment(ctx *gin.Context) (interface{}, error)

type SheetHandler

type SheetHandler struct {
	OptionService         service.OptionService
	SheetService          service.SheetService
	SheetCommentService   service.SheetCommentService
	SheetCommentAssembler assembler.SheetCommentAssembler
}

func NewSheetHandler

func NewSheetHandler(
	optionService service.OptionService,
	sheetService service.SheetService,
	sheetCommentService service.SheetCommentService,
	sheetCommentAssembler assembler.SheetCommentAssembler,
) *SheetHandler

func (*SheetHandler) CreateComment

func (s *SheetHandler) CreateComment(ctx *gin.Context) (interface{}, error)

func (*SheetHandler) ListChildren

func (s *SheetHandler) ListChildren(ctx *gin.Context) (interface{}, error)

func (*SheetHandler) ListComment

func (s *SheetHandler) ListComment(ctx *gin.Context) (interface{}, error)

func (*SheetHandler) ListCommentTree

func (s *SheetHandler) ListCommentTree(ctx *gin.Context) (interface{}, error)

func (*SheetHandler) ListTopComment

func (s *SheetHandler) ListTopComment(ctx *gin.Context) (interface{}, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL