Versions in this module Expand all Collapse all v0 v0.2.0 Feb 9, 2024 Changes in this version + func DetailPage(c *fiber.Ctx) error v0.1.0 Dec 10, 2023 Changes in this version + const KeyPostCheckRouter + const KeyPostDB + const KeyPostNoCheckRouter + var Dao = new(PostDao) + func Bind(c *fiber.Ctx, post *model.Post) error + func BindCategory(c *fiber.Ctx, category *model.Category) error + func BindTag(c *fiber.Ctx, tag *model.Tag) error + func HTMXHomePostDetailPage(c *fiber.Ctx) error + func PostDetailPage(c *fiber.Ctx) error + type PostDao struct + func (pd PostDao) Count() int64 + func (pd PostDao) CountByDraft() int64 + func (pd PostDao) CountByPublished() int64 + func (pd PostDao) CountByTrash() int64 + func (pd PostDao) CountCatgegory() int64 + func (pd PostDao) CountTag() int64 + func (pd PostDao) DeleteByIds(ids []uint) + func (pd PostDao) DeleteCategoriesByIds(ids []uint) + func (pd PostDao) DeletePermanetlyByIds(ids []uint) + func (pd PostDao) DeleteTagsByIds(ids []uint) + func (pd PostDao) GetAllByPage(page, numPerPage int) []model.Post + func (pd PostDao) GetByID(id uint) (*model.Post, error) + func (pd PostDao) GetBySlug(slug string) (*model.Post, error) + func (pd PostDao) GetCategories() []model.Category + func (pd PostDao) GetCategoriesByPage(page, numPerPage int) []model.Category + func (pd PostDao) GetCategoryByID(id uint) (*model.Category, error) + func (pd PostDao) GetDraftListByPage(page, numPerPage int, categoryID int, q string) []model.Post + func (pd PostDao) GetListByPage(page, numPerPage int, categoryID int, q string) []model.Post + func (pd PostDao) GetPublishedListByPage(page, numPerPage int, categoryID int, q string) []model.Post + func (pd PostDao) GetTagByID(id uint) (*model.Tag, error) + func (pd PostDao) GetTagsByPage(page, numPerPage int) []model.Tag + func (pd PostDao) GetTrashListByPage(page, numPerPage int, categoryID int, q string) []model.Post + func (pd PostDao) RestoreByIds(ids []uint) + func (pd PostDao) UpdateDraft(value uint)