Discover Packages
github.com/go-microservice/ins-api
internal
ecode
package
Version:
v0.0.0-...-a6a042c
Opens a new window with list of versions in this module.
Published: Jul 5, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
业务错误码定义
公共错误码已经在 github.com/go-eagle/eagle/pkg/errcode
包中,可以直接使用
业务的错误码可以根据模块按文件进行定义
使用时公共错误码 以 errno.开头
,业务错误码以 ecode.开头
Demo
// 公共错误码
import "github.com/go-eagle/eagle/pkg/errcode"
...
errno.InternalServerError
// 业务错误码
import "github.com/go-eagle/eagle/internal/ecode"
...
ecode.ErrUserNotFound
Expand ▾
Collapse ▴
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.