global

package
v0.0.0-...-d80f745 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CounterErrCode = xerror.BizCounter
)

Variables

View Source
var (
	ErrBizArgs     = xerror.ErrInvalidArgs.ErrCode(CounterErrCode)
	ErrBizInternal = xerror.ErrInternal.ErrCode(CounterErrCode)
	ErrBizDenied   = xerror.ErrPermission.ErrCode(CounterErrCode)
	ErrNotFound    = xerror.ErrNotFound.ErrCode(CounterErrCode)

	ErrArgs         = ErrBizArgs.Msg("参数错误")
	ErrInternal     = ErrBizInternal.Msg("服务错误, 请稍后重试")
	ErrPermDenied   = ErrBizDenied.Msg("操作权限不足")
	ErrNilReq       = ErrArgs.Msg("请求参数为空")
	ErrNoRecord     = ErrNotFound.Msg("找不到记录")
	ErrAlreadyDo    = ErrArgs.Msg("不能重复操作")
	ErrCountSummary = ErrInternal.Msg("获取计数失败,请稍后重试")
)

业务错误定义

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