core

package
v0.0.0-...-0bf5125 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookingService

type BookingService struct {
	Repo persistence.Repo
}

func NewBookingService

func NewBookingService(repo persistence.Repo) BookingService

func (*BookingService) CalcBookingStatistics

func (bookingService *BookingService) CalcBookingStatistics(bookings []models.Booking) *models.BookingStatistics

func (*BookingService) CancelBooking

func (bookingService *BookingService) CancelBooking(booking *models.Booking) error

func (*BookingService) CreateBooking

func (bookingService *BookingService) CreateBooking(booking *models.Booking) error

func (*BookingService) DeleteBooking

func (bookingService *BookingService) DeleteBooking(booking *models.Booking) error

func (*BookingService) GetAllBookings

func (bookingService *BookingService) GetAllBookings() ([]models.Booking, error)

func (*BookingService) GetAllBookingsForYear

func (bookingService *BookingService) GetAllBookingsForYear(year int) ([]models.Booking, error)

func (*BookingService) GetBookingById

func (bookingService *BookingService) GetBookingById(id int64) (*models.Booking, error)

func (*BookingService) Overview

func (bookingService *BookingService) Overview() (*models.BookingStatistics, error)

func (*BookingService) ResetCancellationOfBooking

func (bookingService *BookingService) ResetCancellationOfBooking(booking *models.Booking) error

func (*BookingService) SaveBooking

func (bookingService *BookingService) SaveBooking(booking *models.Booking) error

type LedgerService

type LedgerService struct {
	Repo persistence.Repo
}

func NewLedgerService

func NewLedgerService(repo persistence.Repo) *LedgerService

func (*LedgerService) DeleteLedgerEntry

func (service *LedgerService) DeleteLedgerEntry(entry *models.LedgerEntry) error

func (*LedgerService) FindLedgerEntryById

func (service *LedgerService) FindLedgerEntryById(id string) (*models.LedgerEntry, error)

func (*LedgerService) GetAllLedgerEntries

func (service *LedgerService) GetAllLedgerEntries() ([]models.LedgerEntry, error)

func (*LedgerService) SaveLedgerEntry

func (service *LedgerService) SaveLedgerEntry(entry *models.LedgerEntry) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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