board

package
v0.0.0-...-fb47854 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Employee

type Employee struct {
	Id           int64 `json:"id"`
	Name         string
	LocationId   int64
	Transactions []Transaction
}

func (*Employee) AfterCreate

func (employee *Employee) AfterCreate(db *gorm.DB) (err error)

type EmployeePresenter

type EmployeePresenter struct {
	Id         int64 `json:"id"`
	Name       string
	Location   string
	ReturnTime time.Time
}

type Location

type Location struct {
	Id      int64 `json:"id"`
	Name    string
	OnClock bool
}

type Store

type Store struct {
	DB gorm.DB
}

func (*Store) GetAllEmployees

func (store *Store) GetAllEmployees(output rest.ResponseWriter, request *rest.Request)

func (*Store) GetAllLocations

func (store *Store) GetAllLocations(output rest.ResponseWriter, request *rest.Request)

func (*Store) GetAllTransactions

func (store *Store) GetAllTransactions(output rest.ResponseWriter, request *rest.Request)

func (*Store) Init

func (store *Store) Init()

func (*Store) PostEmployee

func (store *Store) PostEmployee(output rest.ResponseWriter, request *rest.Request)

func (*Store) PostLocation

func (store *Store) PostLocation(output rest.ResponseWriter, request *rest.Request)

func (*Store) PostTransaction

func (store *Store) PostTransaction(output rest.ResponseWriter, request *rest.Request)

type Transaction

type Transaction struct {
	Id         int64 `json:"id"`
	EmployeeId int64
	CreatedAt  time.Time
	LocationId int64
	ReturnTime time.Time
}

Jump to

Keyboard shortcuts

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