services

package
v0.0.0-...-dd51157 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateExpense

func CreateExpense(req *http.Request, createExpenseRequest models.ExpenseResourceRest) (*models.ExpenseResourceRest, int, error)

func GetExpense

func GetExpense(req *http.Request, id string) (models.ExpenseResourceRest, int, error)

Types

type ExpensesService

type ExpensesService struct {
	Repository storage.Mongo
	Config     config.Config
}

Expenseservice contains the Repository for db access

Jump to

Keyboard shortcuts

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