services

package
v0.0.0-...-944857f Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GarageNumber = "garageNumber"
	FullName     = "fullName"
	PhoneNumber  = "phoneNumber"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// contains filtered or unexported fields
}

func New

func New() *Account

func (*Account) All

func (a *Account) All(orderColumn, orderDirection string) ([][]string, error)

func (*Account) Create

func (a *Account) Create(garageNum, FullName, phone, address string) error

func (*Account) CreateFromBindings

func (a *Account) CreateFromBindings(bindings ...binding.String) error

func (*Account) Search

func (a *Account) Search(value string) ([][]string, error)

type Payment

type Payment struct {
	// contains filtered or unexported fields
}

func NewPayment

func NewPayment() *Payment

func (*Payment) ListPayments

func (p *Payment) ListPayments(accountID string) ([]float32, error)

func (*Payment) Pay

func (p *Payment) Pay(garageNumber, year, paymentValue string) (*models.Payment, error)

type Rate

type Rate struct {
	// contains filtered or unexported fields
}

func NewRate

func NewRate() *Rate

func (*Rate) Rates

func (r *Rate) Rates() (map[string]float32, error)

Jump to

Keyboard shortcuts

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