Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ErrConnectDB - 500: Init db error. ErrConnectDB int = iota + 100101 // ErrConnectGRPC - 500: Connect to grpc error. ErrConnectGRPC )
View Source
const ( // ErrGoodsNotFound - 404: Goods not found. ErrGoodsNotFound int = iota + 100501 // ErrCategoryNotFound - 404: Category not found. ErrCategoryNotFound // ErrBrandNotFound - 500: Es unmarshal error. ErrEsUnmarshal )
View Source
const ( // ErrInventoryNotFound - 404: Inventory not found. ErrInventoryNotFound int = iota + 100601 // ErrInvSellDetailNotFound - 400: Inventory sell detail not found. ErrInvSellDetailNotFound // ErrInvNotEnough - 400: Inventory not enough. ErrInvNotEnough )
View Source
const ( // ErrShopCartItemNotFound - 404: ShopCart item not found. ErrShopCartItemNotFound int = iota + 100701 // ErrSubmitOrder - 400: Submit order error. ErrSubmitOrder // ErrOrderNotFound - 404: No Goods selected. ErrNoGoodsSelect )
View Source
const ( // ErrUserNotFound - 404: User not found. ErrUserNotFound int = iota + 100401 // ErrUserAlreadyExists - 400: User already exists. ErrUserAlreadyExists // ErrUserPasswordIncorrect - 400: User password incorrect. ErrUserPasswordIncorrect // ErrSmsSend - 400: Send sms error. ErrSmsSend // ErrCodeNotExist - 400: Sms code incorrect or expired. ErrCodeNotExist // ErrCodeInCorrect - 400: Sms code incorrect. ErrCodeInCorrect // ErrCodeInvalidParam - 400: Invalid param. ErrCodeInvalidParam )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrCode ¶
func (ErrCode) HTTPStatus ¶
Click to show internal directories.
Click to hide internal directories.