model

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryModel

type CategoryModel struct {
	OptionService          service.OptionService
	PostService            service.PostService
	ThemeService           service.ThemeService
	PostCategoryService    service.PostCategoryService
	CategoryService        service.CategoryService
	PostTagService         service.PostTagService
	TagService             service.TagService
	MetaService            service.MetaService
	PostAssembler          assembler.PostAssembler
	CategoryAuthentication *authentication.CategoryAuthentication
}

func NewCategoryModel

func NewCategoryModel(optionService service.OptionService,
	postService service.PostService,
	themeService service.ThemeService,
	postCategoryService service.PostCategoryService,
	categoryService service.CategoryService,
	postTagService service.PostTagService,
	tagService service.TagService,
	postAssembler assembler.PostAssembler,
	metaService service.MetaService,
	categoryAuthentication *authentication.CategoryAuthentication,
) *CategoryModel

func (*CategoryModel) CategoryDetail

func (c *CategoryModel) CategoryDetail(ctx context.Context, model template.Model, slug string, page int, token string) (string, error)

func (*CategoryModel) ListCategories

func (c *CategoryModel) ListCategories(ctx context.Context, model template.Model) (string, error)

type JournalModel

type JournalModel struct {
	JournalService service.JournalService
	OptionService  service.OptionService
	ThemeService   service.ThemeService
}

func NewJournalModel

func NewJournalModel(optionService service.OptionService,
	themeService service.ThemeService,
	journalService service.JournalService,
) *JournalModel

func (*JournalModel) Journals

func (p *JournalModel) Journals(ctx context.Context, model template.Model, page int) (string, error)

type LinkModel

type LinkModel struct {
	LinkService   service.LinkService
	OptionService service.OptionService
	ThemeService  service.ThemeService
}

func NewLinkModel

func NewLinkModel(
	optionService service.OptionService,
	themeService service.ThemeService,
	linkService service.LinkService,
) *LinkModel
func (l *LinkModel) Links(ctx context.Context, model template.Model) (string, error)

type PhotoModel

type PhotoModel struct {
	PhotoService  service.PhotoService
	OptionService service.OptionService
	ThemeService  service.ThemeService
}

func NewPhotoModel

func NewPhotoModel(optionService service.OptionService,
	themeService service.ThemeService,
	photoService service.PhotoService,
) *PhotoModel

func (*PhotoModel) Photos

func (p *PhotoModel) Photos(ctx context.Context, model template.Model, page int) (string, error)

type PostModel

type PostModel struct {
	OptionService       service.OptionService
	PostService         service.PostService
	ThemeService        service.ThemeService
	PostCategoryService service.PostCategoryService
	CategoryService     service.CategoryService
	PostTagService      service.PostTagService
	TagService          service.TagService
	MetaService         service.MetaService
	PostAssembler       assembler.PostAssembler
	PostAuthentication  *authentication.PostAuthentication
}

func NewPostModel

func NewPostModel(optionService service.OptionService,
	postService service.PostService,
	themeService service.ThemeService,
	postCategoryService service.PostCategoryService,
	categoryService service.CategoryService,
	postTagService service.PostTagService,
	tagService service.TagService,
	postAssembler assembler.PostAssembler,
	metaService service.MetaService,
	postAuthentication *authentication.PostAuthentication,
) *PostModel

func (*PostModel) AdminPreview added in v1.1.0

func (p *PostModel) AdminPreview(ctx context.Context, post *entity.Post, model template.Model) (string, error)

func (*PostModel) Archives

func (p *PostModel) Archives(ctx context.Context, page int, model template.Model) (string, error)

func (*PostModel) Content

func (p *PostModel) Content(ctx context.Context, post *entity.Post, token string, model template.Model) (string, error)

func (*PostModel) List

func (p *PostModel) List(ctx context.Context, page int, model template.Model) (string, error)

type SheetModel

type SheetModel struct {
	SheetService       service.SheetService
	OptionService      service.OptionService
	ThemeService       service.ThemeService
	PostTagService     service.PostTagService
	TagService         service.TagService
	MetaService        service.MetaService
	SheetAssembler     assembler.SheetAssembler
	PostAuthentication *authentication.PostAuthentication
}

func NewSheetModel

func NewSheetModel(optionService service.OptionService,
	themeService service.ThemeService,
	postTagService service.PostTagService,
	tagService service.TagService,
	metaService service.MetaService,
	sheetAssembler assembler.SheetAssembler,
	sheetService service.SheetService,
	postAuthentication *authentication.PostAuthentication,
) *SheetModel

func (*SheetModel) AdminPreviewContent added in v1.1.0

func (s *SheetModel) AdminPreviewContent(ctx context.Context, sheet *entity.Post, model template.Model) (string, error)

func (*SheetModel) Content

func (s *SheetModel) Content(ctx context.Context, sheet *entity.Post, token string, model template.Model) (string, error)

type TagModel

type TagModel struct {
	TagService     service.TagService
	OptionService  service.OptionService
	ThemeService   service.ThemeService
	PostTagService service.PostTagService
	MetaService    service.MetaService
	PostAssembler  assembler.PostAssembler
}

func NewTagModel

func NewTagModel(optionService service.OptionService,
	themeService service.ThemeService,
	tagService service.TagService,
	postTagService service.PostTagService,
	postAssembler assembler.PostAssembler,
) *TagModel

func (*TagModel) TagPosts

func (t *TagModel) TagPosts(ctx context.Context, model template.Model, slug string, page int) (string, error)

func (*TagModel) Tags

func (t *TagModel) Tags(ctx context.Context, model template.Model) (string, error)

Jump to

Keyboard shortcuts

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