page

package
v0.0.0-...-e7f7af0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	*dbschema.OfficialPageBlock
}

func NewBlock

func NewBlock(ctx echo.Context) *Block

type Layout

type Layout struct {
	*dbschema.OfficialPageLayout
}

func NewLayout

func NewLayout(ctx echo.Context) *Layout

func (*Layout) ListPage

func (f *Layout) ListPage(cond *db.Compounds, orderby ...interface{}) ([]*LayoutExt, error)

type LayoutExt

type LayoutExt struct {
	*dbschema.OfficialPageLayout
	Page  *dbschema.OfficialPage      `db:"-,relation=id:page_id|gtZero"`
	Block *dbschema.OfficialPageBlock `db:"-,relation=id:block_id|gtZero"`
}

type LayoutWithBlock

type LayoutWithBlock struct {
	*dbschema.OfficialPageLayout
	Block       *dbschema.OfficialPageBlock `db:"-,relation=id:block_id|gtZero"`
	Configs     echo.H
	ItemConfigs echo.H
}

type Page

type Page struct {
	*dbschema.OfficialPage
}

func New

func New(ctx echo.Context) *Page

func (*Page) LayoutList

func (f *Page) LayoutList() ([]*LayoutWithBlock, error)

Jump to

Keyboard shortcuts

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