Help us shape the future of Go! Take the 2026 Go Developer Survey

errcode

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// InvalidInput 输入校验失败
	InvalidInput = apperror.NewCode(400001, "INVALID_INPUT", "请求参数有误")

	// Unauthorized 未认证
	Unauthorized = apperror.NewCode(401001, "UNAUTHORIZED", "请先登录")

	// Forbidden 无权限
	Forbidden = apperror.NewCode(403001, "FORBIDDEN", "无权限执行此操作")

	// NotFound 资源不存在
	NotFound = apperror.NewCode(404001, "NOT_FOUND", "找不到此记录")

	// Conflict 资源冲突
	Conflict = apperror.NewCode(409001, "CONFLICT", "数据已存在")

	// Internal 系统错误
	Internal = apperror.NewCode(500001, "INTERNAL", "系统异常,请稍后重试")
)

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