product

package
v0.0.0-...-f2be101 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Create

type Create struct{}

Create is

func NewCreate

func NewCreate() *Create

NewCreate handler

func (*Create) Handle

func (h *Create) Handle(c echo.Context) (err error)

type Delete

type Delete struct{}

Delete is

func NewDelete

func NewDelete() *Delete

NewDelete handler

func (*Delete) Handle

func (h *Delete) Handle(c echo.Context) (err error)

type List

type List struct{}

List is

func NewList

func NewList() *List

NewList handler

func (*List) Handle

func (h *List) Handle(c echo.Context) (err error)

type Request

type Request struct {
	SKU         string  `json:"sku" form:"sku" validate:"required"`
	ProductName string  `json:"product_name" form:"product_name" validate:"required"`
	Qty         float64 `json:"qty" form:"qty" validate:"required"`
	Price       float64 `json:"price" form:"price" validate:"required"`
	Unit        string  `json:"unit" form:"unit" validate:"required"`
	Status      int32   `json:"status" form:"status" validate:"required"`
}

type Update

type Update struct{}

Update is

func NewUpdate

func NewUpdate() *Update

NewUpdate handler

func (*Update) Handle

func (h *Update) Handle(c echo.Context) (err error)

Jump to

Keyboard shortcuts

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