base

package
v0.0.0-...-643218b Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

View Source
const (
	SRC_SRV_ID  string = "_src_srv_id"
	DEST_SRV_ID string = "_dest_srv_id"
)
View Source
const (
	USER_ID_KEY = "_user_id_"
	X_REAL_IP   = "_x_real_ip_"
)

Variables

View Source
var X_CRYPTO_IV = []byte("lpx2s5BdruJCk0ba")

iv size 必须是16

View Source
var X_CRYPTO_SECRET = []byte("tdmtU2aYwwxhqpssvT61hmP0Y98NSfBq")

需要自己更换成自己的 size 必须是 16,24,32

Functions

This section is empty.

Types

type BusinessException

type BusinessException struct {
	Code gen.ErrorCode
	Msg  string
}

func NewEx

func NewEx(code gen.ErrorCode, msg string) *BusinessException

func (*BusinessException) Error

func (e *BusinessException) Error() string

Jump to

Keyboard shortcuts

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