invoice

package
v0.0.0-...-df4534a Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Header *invoiceheader.Model
	Items  invoiceitem.Models
}

Model of invoice

type Service

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

Service of invoice

func NewService

func NewService(s Storage) *Service

NewService return a pointer of Service

func (*Service) Create

func (s *Service) Create(m *Model) error

Create a new invoice

type Storage

type Storage interface {
	Create(*Model) error
}

Storage interface that must implement a db storage

Jump to

Keyboard shortcuts

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