constans

package
v0.0.0-...-8f6881d Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserEntity        = `User`
	ProductEntity     = `Product`
	TransactionEntity = `Transaction`

	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"
	MessageSuccessCheckoutItem = "Success checkout item"

	DefaultImage  = "image/default.jpg"
	BaseImagePath = "images/%d.%s"

	PENDING = "pending"
)

Variables

View Source
var (
	ErrInternalServerError  = errors.New("internal server error")
	ErrNotFound             = errors.New("your requested item is not found")
	ErrConflict             = errors.New("data 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