Documentation
¶
Index ¶
- Constants
- Variables
- func BeforeRenderPage(ctx *fiber.Ctx, vptr any) (any, error)
- func Bind(c *fiber.Ctx, page *model.Page) error
- type PageDao
- func (ad PageDao) Count() int64
- func (ad 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 ¶
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.