model

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 13 Imported by: 1

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,
	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,
	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) 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) 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,
	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