enum

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DataErr  = NewErrorEnum("0001", "data error")
	GrpcErr  = NewErrorEnum("0002", "grpc error")
	ParamErr = NewErrorEnum("0003", "query param error")
)

Functions

This section is empty.

Types

type ErrorEnum

type ErrorEnum struct {
	Code string
	Msg  string
}

func NewErrorEnum

func NewErrorEnum(code string, msg string) *ErrorEnum

Jump to

Keyboard shortcuts

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