Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRecordRepeat = errors.New("数据已经存在") ErrDateBusy = errors.New("数据在使用") )
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Inner error
Text string // 业务错误信息,通常是中文提示,返回给客户端
StackTrace string
Misc map[string]any // miscellaneous(各种各样) information
}
Error 自定义错误
type FindByIDService ¶
type FindByIDService[T any] struct{}
Click to show internal directories.
Click to hide internal directories.