service

package
v0.0.0-...-5b02dbe Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PaginationPageSize   = 25
	PaginationPagesLimit = 10
)

Variables

This section is empty.

Functions

func ConvertCustomerToEditReq

func ConvertCustomerToEditReq(customer db.Customer) *request.EditCustomer

func CreateCustomer

func CreateCustomer(userID uuid.UUID, req request.CreateCustomer) (*db.Customer, *apperror.Error)

func CreateFakeCustomers

func CreateFakeCustomers(userID uuid.UUID, amount uint32) *apperror.Error

func DashboardStats

func DashboardStats(userID uuid.UUID) ([]dao.CustomerMonthlyRegistrations, *apperror.Error)

func DeleteCustomer

func DeleteCustomer(userID, customerID uuid.UUID) *apperror.Error

func SearchCustomers

func SearchCustomers(userID uuid.UUID, req request.SearchCustomersNormalized) ([]db.Customer, uint32, *apperror.Error)

func UpdateCustomer

func UpdateCustomer(userID uuid.UUID, req request.EditCustomer) *apperror.Error

func UserAuth

func UserAuth(token string) (*db.User, *apperror.Error)

func UserLogin

func UserLogin(req request.LoginUser) (*db.User, *apperror.Error)

func UserLogout

func UserLogout(user *db.User) *apperror.Error

func UserRegister

func UserRegister(req request.RegisterUser) (*db.User, *apperror.Error)

func UserUpdate

func UserUpdate(user *db.User, req request.EditUser) *apperror.Error

func ViewCustomer

func ViewCustomer(userID, customerID uuid.UUID) (*db.Customer, *apperror.Error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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