models

package
v0.0.0-...-4354785 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Club

type Club struct {
	Id          int `orm:"pk"`
	Title       string
	Description string
	President   string
	Contact     string
	Lastmod     int
}

func (*Club) Create

func (this *Club) Create() (int64, bool)

func (*Club) GetAll

func (this *Club) GetAll() []Club

func (*Club) GetById

func (this *Club) GetById() bool

func (*Club) GetByTime

func (this *Club) GetByTime(t int) []Club

func (*Club) UpdateByTitle

func (this *Club) UpdateByTitle() bool

type Event

type Event struct {
	Id          int `orm:"pk"`
	Title       string
	Description string
	Attendcount int
	Location    string
	Time        int
	Club        string
	Lastmod     int
}

func (*Event) AddAttend

func (this *Event) AddAttend() bool

func (*Event) Create

func (this *Event) Create() (int64, bool)

func (*Event) Delete

func (this *Event) Delete() bool

func (*Event) GetAfter

func (this *Event) GetAfter(t int) []Event

func (*Event) GetAll

func (this *Event) GetAll() []Event

func (*Event) GetAttendByTime

func (this *Event) GetAttendByTime(t int) []Event

func (*Event) GetByClub

func (this *Event) GetByClub(club string) []Event

func (*Event) GetById

func (this *Event) GetById() bool

func (*Event) GetNew

func (this *Event) GetNew(id int) []Event

func (*Event) UpdateByTitle

func (this *Event) UpdateByTitle() (int64, bool)

Jump to

Keyboard shortcuts

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