constans

package
v0.0.0-...-dd467ca Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserEntity            = `User`
	ProductEntity         = `Product`
	CategoryEntity        = `Category`
	TagEntity             = `Tag`
	DeliveryAddressEntity = `DeliveryAddress`
	CartEntity            = `Cart`
	OrderEntity           = `Order`
	InvoiceEntity         = `Invoice`
)
View Source
const (
	MessageSuccessReadAll     = "Success retrieve all data from %s"
	MessageSuccessReadByID    = "Success get %s with id %s"
	MessageSuccessCreate      = "Success create new %s"
	MessageSuccessUpdate      = "Success update %s with id %s"
	MessageSuccessDelete      = "Success delete %s with id %s"
	MessageSuccessUploadImage = "Success upload %s image"
	MessageSuccessUpdateCart  = "Success update Cart"
)
View Source
const (
	BaseImagePath = "images/%d.%s"
)

Variables

View Source
var (
	ErrInternalServerError  = errors.New("internal server error")
	ErrNotFound             = errors.New("your requested item is not found")
	ErrConflict             = errors.New("your item already exist")
	ErrBadParamInput        = errors.New("given param is not valid")
	ErrWrongEmailOrPassword = errors.New("wrong email/password")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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