page

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 Bind

func Bind(c *fiber.Ctx, page *model.Page) error

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

func (pd PageDao) Count() int64

func (PageDao) CountTrash

func (pd PageDao) CountTrash() int64

func (PageDao) DeleteByIds

func (pd PageDao) DeleteByIds(ids []uint)

func (PageDao) DeletePermanetlyByIds

func (pd PageDao) DeletePermanetlyByIds(ids []uint)

func (PageDao) GetAllByPage

func (pd PageDao) GetAllByPage(page, numPerPage int) []model.Page

func (PageDao) GetByID

func (pd PageDao) GetByID(id uint) (*model.Page, error)

func (PageDao) GetBySlug

func (pd PageDao) GetBySlug(slug string) (*model.Page, error)

func (PageDao) GetListByPage

func (pd PageDao) GetListByPage(page, numPerPage int, q string) []model.Page

func (PageDao) GetTrashListByPage

func (pd PageDao) GetTrashListByPage(page, numPerPage int, q string) []model.Page

func (PageDao) RestoreByIds

func (pd PageDao) RestoreByIds(ids []uint)

Jump to

Keyboard shortcuts

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