Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseCommentAssembler ¶
type BaseCommentAssembler interface { ConvertToDTO(ctx context.Context, comment *entity.Comment) (*dto.Comment, error) ConvertToDTOList(ctx context.Context, comments []*entity.Comment) ([]*dto.Comment, error) PageConvertToVOs(ctx context.Context, comments []*entity.Comment, page param.Page) ([]*vo.Comment, int64, error) ConvertToWithParentVO(ctx context.Context, comments []*entity.Comment) ([]*vo.CommentWithParent, error) ConvertToWithHasChildren(ctx context.Context, comments []*entity.Comment) ([]*vo.CommentWithHasChildren, error) ClearSensitiveField(ctx context.Context, comments []*entity.Comment) []*entity.Comment }
func NewBaseCommentAssembler ¶
func NewBaseCommentAssembler( optionService service.OptionService, baseCommentService service.BaseCommentService, ) BaseCommentAssembler
type BasePostAssembler ¶
type BasePostAssembler interface { ConvertToSimpleDTO(ctx context.Context, post *entity.Post) (*dto.Post, error) ConvertToMinimalDTO(ctx context.Context, post *entity.Post) (*dto.PostMinimal, error) ConvertToDetailDTO(ctx context.Context, post *entity.Post) (*dto.PostDetail, error) }
func NewBasePostAssembler ¶
func NewBasePostAssembler( basePostService service.BasePostService, baseCommentService service.BaseCommentService, ) BasePostAssembler
type JournalCommentAssembler ¶
type JournalCommentAssembler interface { BaseCommentAssembler ConvertToWithJournal(ctx context.Context, comments []*entity.Comment) ([]*vo.JournalCommentWithJournal, error) }
func NewJournalCommentAssembler ¶
func NewJournalCommentAssembler( optionService service.OptionService, baseCommentService service.BaseCommentService, baseCommentAssembler BaseCommentAssembler, journalService service.JournalService, ) JournalCommentAssembler
type PostAssembler ¶
type PostAssembler interface { BasePostAssembler ConvertToListVO(ctx context.Context, posts []*entity.Post) ([]*vo.Post, error) ConvertToDetailVO(ctx context.Context, post *entity.Post) (*vo.PostDetailVO, error) ConvertToDetailVOs(ctx context.Context, posts []*entity.Post) ([]*vo.PostDetailVO, error) ConvertToArchiveYearVOs(ctx context.Context, posts []*entity.Post) ([]*vo.ArchiveYear, error) ConvertTOArchiveMonthVOs(ctx context.Context, posts []*entity.Post) ([]*vo.ArchiveMonth, error) }
func NewPostAssembler ¶
func NewPostAssembler(basePostService service.BasePostService, baseCommentService service.BaseCommentService, postTagService service.PostTagService, postCategoryService service.PostCategoryService, tagService service.TagService, categoryService service.CategoryService, postCommentService service.PostCommentService, metaService service.MetaService, basePostAssembler BasePostAssembler, ) PostAssembler
type PostCommentAssembler ¶
type PostCommentAssembler interface { BaseCommentAssembler ConvertToWithPost(ctx context.Context, comments []*entity.Comment) ([]*vo.PostCommentWithPost, error) }
func NewPostCommentAssembler ¶
func NewPostCommentAssembler( optionService service.OptionService, baseCommentService service.BaseCommentService, baseCommentAssembler BaseCommentAssembler, postService service.PostService, postAssembler PostAssembler, ) PostCommentAssembler
type SheetAssembler ¶
type SheetAssembler interface { BasePostAssembler ConvertToDetailVO(ctx context.Context, sheet *entity.Post) (*vo.SheetDetail, error) ConvertToListVO(ctx context.Context, sheets []*entity.Post) ([]*vo.SheetList, error) }
func NewSheetAssembler ¶
func NewSheetAssembler( basePostService service.BasePostService, metaService service.MetaService, basePostAssembler BasePostAssembler, sheetCommentService service.SheetCommentService, ) SheetAssembler
type SheetCommentAssembler ¶
type SheetCommentAssembler interface { BaseCommentAssembler ConvertToWithSheet(ctx context.Context, comments []*entity.Comment) ([]*vo.SheetCommentWithSheet, error) }
func NewSheetCommentAssembler ¶
func NewSheetCommentAssembler( optionService service.OptionService, baseCommentService service.BaseCommentService, baseCommentAssembler BaseCommentAssembler, sheetService service.SheetService, sheetAssembler SheetAssembler, ) SheetCommentAssembler
Click to show internal directories.
Click to hide internal directories.