constant

package
v0.0.0-...-393e050 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EMPTY_STRING = ""

	MIN_PASSWORD_LENGTH = 5

	MIN_VOUCHER_VALUE = 1
	MAX_VOUCHER_VALUE = 100

	ZERO_LENGTH = 0
)

Variables

View Source
var (
	ErrUserAccountRequired             = errors.New("ACCOUNT_IS_REQUIRED")
	ErrUserInfoRequired                = errors.New("USER_INFO_REQUIRED") // must input email, phone, or user_name
	ErrUserAccountInValid              = errors.New("ACCOUNT_INVALID")    // account must be: email, phone or user_name
	ErrUserPasswordInvalid             = errors.New("PASSWORD_INVALID")   // password.length must be >= 5
	ErrUserFullNameRequired            = errors.New("USER_REQUIRED")
	ErrUserBirthdayInvalid             = errors.New("USER_BIRTHDAY_INVALID")
	ErrUserPasswordIncorrect           = errors.New("USER_PASSWORD_INCORRECT")
	ErrVoucherNameRequired             = errors.New("VOUCHER_NAME_REQUIRED")
	ErrVoucherTypeRequired             = errors.New("VOUCHER_TYPE_REQUIRED")
	ErrVoucherTypeInvalid              = errors.New("VOUCHER_TYPE_INVALID")
	ErrVoucherValueInvalid             = errors.New("VOUCHER_VALUE_INVALID")
	ErrVoucherCampaignNameInvalid      = errors.New("VOUCHER_NAME_INVALID")
	ErrVoucherCampaignStartDayInvalid  = errors.New("VOUCHER_START_DAY_INVALID")
	ErrVoucherCampaignEndDayInvalid    = errors.New("VOUCHER_END_DAY_INVALID")
	ErrVoucherCampaignLiveTimeInvalid  = errors.New("VOUCHER_LIVE_TIME_INVALID")
	ErrVoucherCampaignTotalSlotInvalid = errors.New("VOUCHER_TOTAL_SLOT_INVALID")
	ErrCampaignMustHavVouchers         = errors.New("CAMPAIGN_MUST_HAVE_VOUCHER")
	ErrVoucherNotFound                 = errors.New("VOUCHER_NOT_FOUND")
)
View Source
var (
	MapVoucherType = map[string]bool{
		"CARD": true,
	}
)

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