mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
add models / services / handlers of user / token / 2fa, add web server command
This commit is contained in:
@@ -71,3 +71,8 @@ func Or(err error, defaultErr *Error) *Error {
|
||||
return defaultErr
|
||||
}
|
||||
}
|
||||
|
||||
func IsCustomError(err error) bool {
|
||||
_, ok := err.(*Error);
|
||||
return ok
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user