code

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code int
const (
	// CodeOk 成功
	CodeOk Code = 200000
)
const (
	// CodeParameterError 由外部因素导致的错误,由此代码递增编排;范围 10000 ~ 19999
	CodeParameterError Code = 103200 + iota
)
const (
	// CodeServiceError 由内部因素导致的错误,由此代码递增编排;范围 20000 ~ 29999
	CodeServiceError Code = 103300 + iota
)

func (Code) Equals

func (c Code) Equals(code int) bool

func (Code) EqualsInt32

func (c Code) EqualsInt32(code int32) bool

func (Code) Int

func (c Code) Int() int

func (Code) Int32

func (c Code) Int32() int32

func (Code) NotEquals

func (c Code) NotEquals(code int) bool

func (Code) NotEqualsInt32

func (c Code) NotEqualsInt32(code int32) bool

Jump to

Keyboard shortcuts

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