Documentation ¶
Index ¶
- Constants
- Variables
- func Bind(c *fiber.Ctx, page *model.Page) error
- func DetailPage(c *fiber.Ctx) error
- func HTMXHomePageDetailPage(c *fiber.Ctx) error
- type PageDao
- func (pd PageDao) Count() int64
- func (pd PageDao) CountTrash() int64
- func (pd PageDao) DeleteByIds(ids []uint)
- func (pd PageDao) DeletePermanetlyByIds(ids []uint)
- func (pd PageDao) GetAllByPage(page, numPerPage int) []model.Page
- func (pd PageDao) GetByID(id uint) (*model.Page, error)
- func (pd PageDao) GetBySlug(slug string) (*model.Page, error)
- func (pd PageDao) GetListByPage(page, numPerPage int, q string) []model.Page
- func (pd PageDao) GetTrashListByPage(page, numPerPage int, q string) []model.Page
- func (pd PageDao) RestoreByIds(ids []uint)
Constants ¶
View Source
const ( KeyPageDB = "page.gorm.db" KeyPageNoCheckRouter = "page.router.nocheck" KeyPageCheckRouter = "page.router.check" )
Variables ¶
View Source
var Dao = new(PageDao)
Functions ¶
func DetailPage ¶ added in v0.2.0
func DetailPage(c *fiber.Ctx) error
func HTMXHomePageDetailPage ¶
func HTMXHomePageDetailPage(c *fiber.Ctx) error
Types ¶
type PageDao ¶
type PageDao struct { }
func (PageDao) CountTrash ¶
func (PageDao) DeleteByIds ¶
func (PageDao) DeletePermanetlyByIds ¶
func (PageDao) GetListByPage ¶
func (PageDao) GetTrashListByPage ¶
func (PageDao) RestoreByIds ¶
Click to show internal directories.
Click to hide internal directories.