[feat] 新增 ErrFuncNotImplemented
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
package contracts
|
||||
|
||||
import "github.com/samber/lo"
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/samber/lo"
|
||||
)
|
||||
|
||||
// 定义错误码
|
||||
type Errno struct {
|
||||
@@ -24,6 +28,8 @@ func (err Err) Error() string {
|
||||
return lo.Ternary(err.alert && err.Errord != "", err.Errord, err.Msg)
|
||||
}
|
||||
|
||||
var ErrFuncNotImplemented = errors.New("func not implemented")
|
||||
|
||||
// 错误码设计
|
||||
// 第一位表示错误级别, 1 为系统错误, 2 为普通错误
|
||||
// 第二三位表示服务模块代码
|
||||
|
||||
Reference in New Issue
Block a user