consts

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Enable  uint8 = 1
	Disable uint8 = 2
)
View Source
const (
	WAITING uint8 = (iota + 1) * 10
	SUCCESS
	REFUND
	CLOSED
	FAILURE
	RequestSuccess
	RequestFailure
)
View Source
const (
	OrderType = iota + 1
	RefundType
)

Variables

View Source
var PayStatusEnum = make(map[string][]uint8)

Functions

func AddEnum

func AddEnum(key string, enum []uint8)

func DeleteEnum

func DeleteEnum(key string)

func InEnumValidate

func InEnumValidate(fl validator.FieldLevel) bool

InEnumValidate 自定义验证器,校验状态值是否在PayStatusEnum 中

Types

This section is empty.

Jump to

Keyboard shortcuts

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