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.
Click to show internal directories.
Click to hide internal directories.