customer_controller

package
v0.0.0-...-52e64fa Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CostumerController

type CostumerController struct {
	ConnectionString string
	DBName           string
	CollectionName   string
}

func NewCostumerController

func NewCostumerController(con string, DBName string, CollectionName string) CostumerController

func (CostumerController) Create

func (cc CostumerController) Create(c echo.Context) error

func (CostumerController) GetTotalAmountSpent

func (cc CostumerController) GetTotalAmountSpent(c echo.Context) error

type NewCreate

type NewCreate struct {
	Name    string `json:"name" validate:"required"`
	Email   string `json:"email" validate:"required"`
	Address string `json:"address" validate:"required"`
}

Jump to

Keyboard shortcuts

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