Documentation
¶
Index ¶
- func Module() fx.Option
- func SumTotalForInvoice(Items []dto.InvoiceItemDTO, field string) float64
- type Category
- func (s *Category) AddCategory(ctx context.Context, categoryDTO *dto.CategoryDTO) (*model.Category, error)
- func (s *Category) DeleteCategory(ctx context.Context, categoryID int) error
- func (s *Category) GetCategories(ctx context.Context) ([]model.Category, error)
- func (s *Category) UpdateCategory(ctx context.Context, categoryID int, categoryDTO *dto.CategoryDTO) (*model.Category, error)
- type Client
- func (s *Client) AddClient(ctx context.Context, clientDTO *dto.CreateClientDTO) (*model.Client, error)
- func (s *Client) DeleteClient(ctx context.Context, clientID int) error
- func (s *Client) GetClients(ctx context.Context) ([]model.Client, error)
- func (s *Client) UpdateClient(ctx context.Context, clientID int, clientDTO *dto.UpdateClientDTO) (*model.Client, error)
- type Inventory
- func (s *Inventory) AddInventory(ctx context.Context, inventoryDTO *dto.InventoryDTO) (*model.Inventory, error)
- func (s *Inventory) DeleteInventory(ctx context.Context, inventoryID int) error
- func (s *Inventory) GetInventories(ctx context.Context) ([]model.Inventory, error)
- func (s *Inventory) UpdateInventory(ctx context.Context, inventoryID int, inventoryDTO *dto.InventoryDTO) (*model.Inventory, error)
- type Invoice
- type Product
- func (s *Product) AddProduct(ctx context.Context, productDTO *dto.ProductDTO) (*model.Product, error)
- func (s *Product) DeleteProduct(ctx context.Context, productID int) error
- func (s *Product) GetProducts(ctx context.Context) ([]model.Product, error)
- func (s *Product) ShowProduct(ctx context.Context, productID int) (*model.Product, error)
- func (s *Product) UpdateProduct(ctx context.Context, productID int, productDTO *dto.ProductDTO) (*model.Product, error)
- type User
- func (s *User) AddUser(ctx context.Context, userDTO *dto.CreateUserDTO) (*model.User, error)
- func (s *User) DeleteUser(ctx context.Context, userID int) error
- func (s *User) GetUsers(ctx context.Context) ([]model.User, error)
- func (s *User) UpdateUser(ctx context.Context, userID int, userDTO *dto.UpdateUserDTO) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SumTotalForInvoice ¶
func SumTotalForInvoice(Items []dto.InvoiceItemDTO, field string) float64
Types ¶
type Category ¶
type Category struct {
// contains filtered or unexported fields
}
func NewCategory ¶
func (*Category) AddCategory ¶
func (*Category) DeleteCategory ¶
func (*Category) GetCategories ¶
type Inventory ¶
type Inventory struct {
// contains filtered or unexported fields
}
func NewInventory ¶
func (*Inventory) AddInventory ¶
func (*Inventory) DeleteInventory ¶
func (*Inventory) GetInventories ¶
type Product ¶
func NewProduct ¶
func (*Product) AddProduct ¶
func (*Product) DeleteProduct ¶
func (*Product) GetProducts ¶
func (*Product) ShowProduct ¶
Click to show internal directories.
Click to hide internal directories.