Documentation
¶
Index ¶
- type CategoryModel
- type JournalModel
- type LinkModel
- type PhotoModel
- type PostModel
- func (p *PostModel) AdminPreview(ctx context.Context, post *entity.Post, model template.Model) (string, error)
- func (p *PostModel) Archives(ctx context.Context, page int, model template.Model) (string, error)
- func (p *PostModel) Content(ctx context.Context, post *entity.Post, token string, model template.Model) (string, error)
- func (p *PostModel) List(ctx context.Context, page int, model template.Model) (string, error)
- type SheetModel
- type TagModel
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 (*CategoryModel) ListCategories ¶
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
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
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
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
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
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
Click to show internal directories.
Click to hide internal directories.