posters

package
v0.0.0-...-cbaa3f3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminSetDeleted

func AdminSetDeleted(db *gorp.DbMap, id int64) error

func AdminSetPublished

func AdminSetPublished(db *gorp.DbMap, id int64, published bool) error

Types

type Poster

type Poster struct {
	Id         int64
	Photo      int64
	Title      string
	ShortTitle string
	Slug       string
	Body       []byte
	StartDate  int64
	EndDate    int64
	FreeEntry  bool
	Audithory  int64
	Address    int64

	SortOrder int64

	Promo bool

	Owner int64

	Published bool
	Created   int64
	Updates   int64
	Deleted   int64
	Version   int64
}

func PostersCreate

func PostersCreate(db *gorp.DbMap, p Poster) (Poster, error)

func PostersGetBySlug

func PostersGetBySlug(db *gorp.DbMap, slug string) (Poster, error)

type Posters

type Posters []Poster

func GetList

func GetList(db *gorp.DbMap, offset, limit int64) (Posters, error)

func PostersGetMonth

func PostersGetMonth(db *gorp.DbMap, t int64) (Posters, error)

func (Posters) Get

func (p Posters) Get(i, week int, mth time.Month) Posters

func (Posters) GetWeeks

func (p Posters) GetWeeks(t time.Time) map[int]map[int]int

func (Posters) IsMonday

func (p Posters) IsMonday(t time.Time, i int) bool

func (Posters) IsPull

func (p Posters) IsPull(t time.Time, week, day int) bool

func (Posters) IsSunday

func (p Posters) IsSunday(t time.Time, i int) bool

func (Posters) PrepareWithPull

func (p Posters) PrepareWithPull(t time.Time) map[int]int

Jump to

Keyboard shortcuts

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